Flatten scoped stores #65
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Type
Description
The Scoped override implemented in #47 didn't allow taking a snapshot for the entire atoms state because the state management was not purely centralized in that way. There was also concern about possible performance degradation due to deep AtomScope nesting.
This PR allows overridden atoms to be cashed into the centralized store by identifying them by unique key of scopes, and snapshot of entire atom stats can now be taken from anywhere in constant time.