Skip to content
Snippets Groups Projects
Commit 3d60c21a authored by Joe Savona's avatar Joe Savona
Browse files

compiler: Represent pruned scopes instead of inlining

There are a few places where we want to check whether a value actually got memoized, and we currently have to infer this based on values that "should" have a scope and whether a corresponding scope actually exists. This PR adds a new ReactiveStatement variant to model a reactive scope block that was pruned for some reason, and updates all the passes that prune scopes to instead produce this new variant.

ghstack-source-id: 91ba77d130b2e78435456dcf01fd76dfb5aa2ad3
Pull Request resolved: https://github.com/facebook/react/pull/29781
parent b6ac7764
Showing
with 113 additions and 6 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment