-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup async selectors shared across multiple roots (#1714)
Summary: Pull Request resolved: facebookexperimental/Recoil#1714 Cleanup the logic used for sharing executions of async selectors shared across multiple Recoil stores. * Remove potential memory leak from cached dep values. * Fix hanging selectors when reading cached dep values for checking if dep values changed. * When checking if an execution from another store is valid, compare the value of the dep for the execution with the current value in the current store instead of the execution's store. * Slight optimization if there are many roots or dependencies by using iterables instead of materializing arrays. Reviewed By: habond Differential Revision: D35426975 fbshipit-source-id: 6dad498293a8544d953d232e27640bd8a5f1fedb
- Loading branch information
1 parent
aae7f82
commit 700f803
Showing
3 changed files
with
97 additions
and
60 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