Skip to content
Discussion options

You must be logged in to vote

Hi @technicated, this was introduced in the following PR #1316. It is an optimization that can be performed when constructing many deeply nested scoped stores. We can flatten the call stack by keeping track of the store at the root of the scoping process, and access its state directly.

We are hopeful that tricks like this won't be necessary soon. With #2527 and our upcoming observation tools, scoped stores will be drastically minimized and will not nest as deeply. And then in TCA 2.0, when we can force that scopes only ever happen along key paths, we may be able to essentially eliminate nesting entirely, in some sense.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by technicated
Comment options

You must be logged in to vote
1 reply
@mbrandonw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants