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.
Enable atom effects to initialize or set atom to a Promise (facebooke…
…xperimental#1681) Summary: Pull Request resolved: facebookexperimental#1681 Minor completeness for the API to allow atoms to be initialized to `Promise` types by wrapping them, similar to atom defaults. To properly allow Promises and such as atom values we also need the ability to set atoms to Promises. The point of this diff is to provide completeness and for future work to support async atoms Differential Revision: D34975767 fbshipit-source-id: 784443175018133b37894e1daab4e53338a88685
- Loading branch information
1 parent
d922baa
commit 7acb985
Showing
5 changed files
with
67 additions
and
29 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
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
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