# react-rflux *0.13.7*



### src/appStateFactory.js


#### appStateFactory(channels, sagas, middleware) 

A channel consists of:
- a name (channel)
- map of ActionTypes
- map of Reducers indexed by ActionType
- map of ActionFunctions indexed by ActionType

See `createChannels` for more details.

A saga consists of:
- a name (channel)
- map of ActionTypes
- SagaHandlersFn higher order function that accepts a `sagas` interface and
  returns the SagaHandlers.

See `createSagas` for more details.

A middleware is function with the following signature:
store => next => action




##### Parameters

| Name | Type | Description |  |
| ---- | ---- | ----------- | -------- |
| channels | `Array.<Channels>`  |  | &nbsp; |
| sagas | `Array.<Sagas>`  |  | &nbsp; |
| middleware | `Array.<Middleware>`  |  | &nbsp; |




##### Returns


- `[object Object]`  the AppState and its dispatcher to send messages.



#### _channelsToState(channels)  *private method*






##### Parameters

| Name | Type | Description |  |
| ---- | ---- | ----------- | -------- |
| channels |  |  | &nbsp; |




##### Returns


-  




*Documentation generated with [doxdox](https://github.com/neogeek/doxdox).*
