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
You can use `@ActionReflect` if you want to run a reducer function for a single action. **Works with TypeScript only!** Action must be a class-based action. It can be a flux-action-class' action, a classic NGRX class-based action or any other class which has eaither a static property `type` or a property `type` on the instance of the class.
295
+
You can use `@ActionReflect` if you want to run a reducer function for a single action. **Works with TypeScript only!** Action must be a class-based action. It can be a flux-action-class' action, a classic NGRX class-based action or any other class which has either a static property `type` or a property `type` on the instance of the class.
296
296
297
297
### Running several reducers for the same action
298
298
@@ -339,6 +339,6 @@ console.log(res2) // logs 135: 130 - previous value, 5 is added by addEnergy
339
339
## How does it compare to [ngrx-actions](https://github.com/amcdnl/ngrx-actions)?
340
340
341
341
1. Stricter typings. Now you'll never forget to add initial state, return a new state from your reducer and accidentally invoke `immer` as a result and etc.
342
-
1.`@ActionReflect` can be used to automaticaly reflect a corresponding action from the type.
342
+
1.`@ActionReflect` can be used to automatically reflect a corresponding action from the type.
343
343
1.`ngrx-actions` doesn't allow matching several reducers to the same action, while `reducer-class` allows you to do that and merges them for you.
344
344
1.`reducer-class` is built with both worlds, Angular and Redux, in mind. It means equal support for both of them!
0 commit comments