Skip to content

Commit 8ce27f8

Browse files
committed
docs(README): Add note explaining the INIT action
1 parent d0455fb commit 8ce27f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ Output action:
8080
### Reducer
8181
A node that takes an action and a current substate and returns a new substate.
8282

83+
**Note**: It is recommended to have an ActionCreator which creates an initialization action ('INIT') at the start of the application. This way the Reducer can return the initial substate it is responsible for.
84+
8385
#### Example
8486
Possible initial state of a reducer:
8587
```js

0 commit comments

Comments
 (0)