> For the complete documentation index, see [llms.txt](https://react-observatory.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://react-observatory.js.org/api-reference/applyasyncreducers.md).

# applyAsyncReducers

A function that takes a reducer creator, created with [composeReducerCreator](/api-reference/composereducercreator.md) returns a [store enhancer.](https://redux.js.org/glossary#store-enhancer) for dynamic Reducer injection.

## Arguments

1. reducerCreator (`Function`): A function that accepts an object with reducers and&#x20;

## Returns

(`Function`): A store enhancer that is used as an argument for [createStore.](https://redux.js.org/api-reference/createstore) to enable dynamic Reducer injection.

## Example: Configuring the Store for dynamic Reducer injection

```javascript
import { createStore } from 'redux'
import { applyAsyncReducers } from '@react-observatory/inject-reducer'
import reducerCreator from './reducers'

export default function configureStore(initialState = {}) {
  const store = createStore(
    reducerCreator(),
    initialState,
    applyAsyncReducers(reducerCreator)
  )

  return store
}
```
