Skip to content

Commit

Permalink
✨ defaultData - simpleObject reducer (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien JUIF authored Jul 20, 2017
1 parent 384ac2e commit 4c1d995
Show file tree
Hide file tree
Showing 19 changed files with 96 additions and 45 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Parameters are :
- it's used to retrieve informations from selectors
- **prefix** (optional) is added to actions to avoid some collisions when there are two reducers with the same name in two distincts paths
- **type** (optional) can be `keyValue` or `simpleObject` (default is `keyValue`)
- **defaultData** (optional), for `simpleObject` only, set the default data value (used by `reset` action and for initialisation)

Example:
- this reducer will use `id` as key field
Expand Down
2 changes: 1 addition & 1 deletion helpers/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion helpers/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4c1d995

Please sign in to comment.