forked from facebookexperimental/Recoil
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test onSet() is called when atom initialized via snapshot (facebookex…
…perimental#1519) Summary: Pull Request resolved: facebookexperimental#1519 Test that `onSet()` is called and `setSelf()` works when atoms are initialized first via Snapshot and then used from hooks in a `<RecoilRoot>`. This includes when initializing atoms via `initializeState` prop in `<RecoilRoot>` which uses a Snapshot. Also make sure the "current" value provided in the updater form of `setSelf()` reflects the current initialized value. Reviewed By: habond Differential Revision: D33372676 fbshipit-source-id: 069d89bbfe0d0c1b1a3a31508a5b7e3f1e2de278
- Loading branch information
1 parent
78f1ab8
commit 56f8115
Showing
6 changed files
with
257 additions
and
167 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
Oops, something went wrong.