# `getResources(state, resourceName, idsOrLabel)`

Returns an array of resources. You can pass it a label or an array of resource
IDs.

#### Arguments

1. `state` *(Object)*: The current state of the Redux store.

3. `resourceName` *(String)*: The name of the resource.

4. `idsOrLabel` *(Array|String)*: Either a list of resource IDs, or the name
  of a label.

#### Returns

(*`Array`*): An Array of resources.

#### Example

```js
import { getResources } from 'resourceful-redux';
import store from './store';

const state = store.getState();

// Retrieve resources by a label
const searchedBooks = getResources(state, 'books', 'search');

// Retrieve resources by an array of IDs
const bookSelection = getResources(state, 'books', [1, 12, 23]);
```

#### Tips

- This method can be slow for large numbers of resources. If you run into
  performance issues, consider using
  [Reselect](https://github.com/reactjs/reselect) to cache the results.

# `getResources(state, resourceName, idsOrLabel)`

Returns an array of resources. You can pass it a label or an array of resource
IDs.

#### Arguments

1. `state` *(Object)*: The current state of the Redux store.

3. `resourceName` *(String)*: The name of the resource.

4. `idsOrLabel` *(Array|String)*: Either a list of resource IDs, or the name
  of a label.

#### Returns

(*`Array`*): An Array of resources.

#### Example

```js
import { getResources } from 'resourceful-redux';
import store from './store';

const state = store.getState();

// Retrieve resources by a label
const searchedBooks = getResources(state, 'books', 'search');

// Retrieve resources by an array of IDs
const bookSelection = getResources(state, 'books', [1, 12, 23]);
```

Remove performance notice from getResources
Remove performance notice from getResources

Now that resources are stored by ID, it's much more performant
