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.
Summary
This RFC describes an approach to making all work done in React lazier. This was inspired by @sebmarkbage 's comments in response to #118 and #119 where the lazy approach seems good but the whole React work process could and should benefit from it
In a few sentences Speculative Mode is a feature where if React bails out of updates it will no longer clone child fibers and but will actually start work on the current tree. It defers the creation of workInProgress until it has actually confirmed an update is required. Only then does the current tree get copied into the workInProgress tree
See Rendered Text
Implementation: facebook/react#18262
Example: https://codesandbox.io/s/speculative-mode-dr89t
Find me on twitter (@joshcstory) or tag me (@gnoff) in a comment if you have any questions