-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): update effects shape, now an array of maps
The effects used to be a single map, keys being the effects id and values the params. This API seemed a little weird especially for the redux community. Now effects are represented by maps with a structure really close to a redux action, a map with an effect key to identify the effect to run and potentially other keys to pass parameters to the handler. This makes returning a batch of effects simpler, and the api simpler, more familiar to JS users, and easier to type. BREAKING CHANGE: Effects used to be a map like { effectKey: params, effect2Key: params2 }, now should become an array of [{ effect: 'effectKey', ...params }, { effect: 'effect2Key', ...params2 }] 1
- Loading branch information
Matthieu Beteille
committed
Dec 5, 2017
1 parent
b9e3b14
commit 96a5728
Showing
7 changed files
with
95 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.