erikras / erikras/react-redux-universal-hot-example
Connect to multiple different actions and different states
- Dominant language
- JavaScript
- Stars
- 12.1k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
maybe an example is more helpful than the title.
I've a `statistics` module and an `info` module.
Each module has the `load` method and the `[LOAD, LOAD_SUCCESS, LOAD_FAIL]` action types.
Of course `LOAD` in `statistics` module is `redux-example/statistics/LOAD` and `LOAD` in `info` module is `redux-example/info/LOAD`
Each module have the following switch:
```
switch (action.type) {
case LOAD:
return {
...state,
loading: true
}
```
Now, how can I listen for all the `redux-example/ALL MODULES/LOAD` action type and get the array of `state.ALL MODULES.loading` properties ?
Contributor guide
Assessment
This issue has not been assessed yet.