You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ability for slices to listen to other actions (#83)
* Add `type` field to action creators
* Update createSlice to handle other actions
* Fill out createSlice docs
* Formatting
* Hacky attempt to fix createAction type tests
* Fix example typo
* Alternate: Add ability for slices to listen to other actions (#86)
Implemented my proposed changes from #83 (comment)@denisw@markerikson your inputs are appreciated
*Note: this PR is for the `feature/other-slice-action` branch not `master`*
* ~~Removed `getType()` utility~~
* ~~`slice` is no longer attached to `actionsMap` and `reducerMap`~~
* ~~Removed `reducerMap` and directly forward `reducers` to `createReducer`~~
- [x] `createAction()` action creators `type` property returns a `string literal` for better type saftey
- [x] Fixed tests
- [x] Added tests
* Play with type tests a bit
TheReduxDevToolsExtensionrecentlyadded [supportforshowingactionstacktraces](https://github.com/zalmoxisus/redux-devtools-extension/blob/d4ef75691ad294646f74bca38b973b19850a37cf/docs/Features/Trace.md) that show exactly where each action was dispatched. Capturing the traces can add a bit of overhead, so the DevTools Extension allows users to configure whether action stack traces are captured.
59
+
TheReduxDevToolsExtensionrecentlyadded [supportforshowingactionstacktraces](https://github.com/zalmoxisus/redux-devtools-extension/blob/d4ef75691ad294646f74bca38b973b19850a37cf/docs/Features/Trace.md) that show exactly where each action was dispatched. Capturing the traces can add a bit of overhead, so the DevTools Extension allows users to configure whether action stack traces are captured.
An optional array of Redux store enhancers. If included, these will be passed to [the Redux `compose` function](https://redux.js.org/api/compose), and the combined enhancer will be passed to `createStore`.
69
+
An optional array of Redux store enhancers. If included, these will be passed to [the Redux `compose` function](https://redux.js.org/api/compose), and the combined enhancer will be passed to `createStore`.
0 commit comments