commit
97f21aac2a
@ -5,7 +5,7 @@ So, I'm a fan of [Redux](https://redux.js.org).
|
|||||||
|
|
||||||
As I was looking into tools to help cut on its boilerplate,
|
As I was looking into tools to help cut on its boilerplate,
|
||||||
I came across [rematch](https://rematch.github.io/rematch).
|
I came across [rematch](https://rematch.github.io/rematch).
|
||||||
It has a few pretty darn good ideas.
|
It has some pretty darn good ideas.
|
||||||
Keeping mutations and asynchronous effects close to the
|
Keeping mutations and asynchronous effects close to the
|
||||||
reducer definition? Nice. Automatically infering the
|
reducer definition? Nice. Automatically infering the
|
||||||
actions from the said mutations and effects? Genius!
|
actions from the said mutations and effects? Genius!
|
||||||
@ -19,7 +19,7 @@ to work with `updeep` and to fit my peculiar needs. It offers features such as
|
|||||||
|
|
||||||
* Mimic the way VueX has mutations (reducer reactions to specific actions) and
|
* Mimic the way VueX has mutations (reducer reactions to specific actions) and
|
||||||
effects (middleware reacting to actions that can be asynchronous and/or
|
effects (middleware reacting to actions that can be asynchronous and/or
|
||||||
have side-effects), so everything pertaining to a store are all defined
|
have side-effects), so all things pertaining to a store are defined
|
||||||
in the space place.
|
in the space place.
|
||||||
* Automatically gather all actions used by the updux's effects and mutations,
|
* Automatically gather all actions used by the updux's effects and mutations,
|
||||||
and makes then accessible as attributes to the `dispatch` object of the
|
and makes then accessible as attributes to the `dispatch` object of the
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
## Mapping a mutation to all values of a state
|
## Mapping a mutation to all values of a state
|
||||||
|
|
||||||
Say you have a `todos` state that is an array of `todo` sub-states. It's easy
|
Say you have a `todos` state that is an array of `todo` sub-states. It's easy
|
||||||
enough to have the main reducer maps away all items to the sub-reducer:
|
enough to have the main reducer map away all items to the sub-reducer:
|
||||||
|
|
||||||
```
|
```
|
||||||
const todo = new Updux({
|
const todo = new Updux({
|
||||||
|
Loading…
Reference in New Issue
Block a user