This repository has been archived by the owner on Nov 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stabilize the identity of the mutate function
Hopefully begins to address #186 Approach: * Remove (mutable) references to state. Instead, hook into the (immutable) `setState` function in the mutate function body where state references are necessary * Try very hard to be honest about what dependencies may change in the dependency array, but leave only immutable dependencies that depend only on props (almost totally successful)
- Loading branch information
1 parent
2793720
commit b75d2a6
Showing
2 changed files
with
67 additions
and
22 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