dillon1000/react
Commit
Browse files Track next scope id on Environment
Currently we allocate all reactive scopes during a single pass, InferReactiveScopeVariables, using a local incrementing number to assign ScopeIds. This means we can't easily create additional scopes later since we don't know the next available scope id. Here we add `Environment.nextScopeId` and use that to synthesize scope ids.
Changed paths2 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/HIR/Environment.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/InferReactiveScopeVariables.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…