Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
Clarify withStateHandlers behavior (#518)
Browse files Browse the repository at this point in the history
Closes #515
  • Loading branch information
idris authored and istarkov committed Sep 16, 2017
1 parent 2d0e327 commit a5513a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ withStateHandlers(
Passes state object properties and immutable updater functions
in a form of `(...payload: any[]) => Object` to the base component.

Every state updater function accepts state, props and payload and must return a new state or undefined.
Every state updater function accepts state, props and payload and must return a new state or undefined. The new state is shallowly merged with the previous state.
Returning undefined does not cause a component rerender.

Example:
Expand Down

0 comments on commit a5513a7

Please sign in to comment.