Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add getSnapshotBeforeUpdate lifecycle hook (#1112)
* Add getSnapshotBeforeUpdate lifecycle hook * Fix copy paste error * squash! more work on tests * Fix wrong ref usage in test * Fix test and add note about differences to react * fixup! Fix tests * squash! Workaround for wrong state reference * squash! Fix state mutation * Only clone previousState when necessary * squash! Move lifecycle test around where it makes more sense
- Loading branch information
1 parent
1b898e2
commit 78ce6cd
Showing
2 changed files
with
182 additions
and
2 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