forked from square/flow
-
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.
State no longer lives in the History instance. This means building a history is no longer unsafe. State is instead maintained by the KeyManager, and History is just a list of keys. States are created in the KeyManager on-demand to support traversals. When the traversal queue is flushed we purge any stale/unused states from the key manager. Loading and saving state is no longer done via the History, but instead handled directly by InternalLifecycleIntegration which pulls keys from the current History and their States from the KeyManager; when loading, it builds a History and pushes States into the KeyManager. There are no longer any public APIs for loading and saving history, it's all managed internally. Fixes square#148
- Loading branch information
Showing
8 changed files
with
133 additions
and
165 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
Oops, something went wrong.