dillon1000/react
Commit
Browse files Flatten scopes within loops
We can't independently memoize values created within a loop, so this pass flattens scopes within loops. Right now this just flattens the scope away without propagating any dependency (or output) information, follow-ups will extend it to do that.
Changed paths3 files
First-parent comparisoncompiler/forget/src/HIR/FlattenReactiveLoops.ts AddedM compiler/forget/src/__tests__/fixtures/hir/component.expect.md ModifiedM compiler/forget/src/__tests__/hir-test.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…