-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: pass old state to stateChanged
Having access to both the current `state` and `previousState` means you can add logic on state changes to decide whether you need to act on them or not (e.g. re-rendering). Closes #6.
- Loading branch information
Andreas Savvides
committed
Apr 18, 2016
1 parent
bf23c00
commit f843e5e
Showing
2 changed files
with
12 additions
and
4 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