Skip to content
Discussion options

You must be logged in to vote

Yes. start executes immediately. The idea is it wraps the whole change set in a transaction of sorts. We create a new Transition if one doesn't already exist and set it as running. Once started instead of updating and propagating changes in the normal way we fork each reactive node along the change propagation path. So basically there are 2 different values for the same node.

If we hit any Resource reads under Suspense boundaries we push the promise onto this transaction. When we get to the end of the computation execution if we have not pushed any promises we overwrite the value of the original value of these nodes with the forked values, run any queued cleanups, delete the Transition, a…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by zhaoyao91
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