dillon1000/react

Commit

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.
Browse files
Changed paths3 files
First-parent comparison
A compiler/forget/src/HIR/FlattenReactiveLoops.ts AddedM compiler/forget/src/__tests__/fixtures/hir/component.expect.md ModifiedM compiler/forget/src/__tests__/hir-test.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…