dillon1000/react
Commit
Browse files [rhir] Patch for reactive computed loads
We need to check reactivity of both the operand and its resolved source (if operand is produced by a LoadLocal / PropertyLoad / ComputedLoad). Both the operand and its source can have reactivity. e.g. ```js const o = makeObject(); // source has no reactivity const x = o[props.x]; // x is reactive ```
Changed paths3 files
First-parent comparisoncompiler/forget/src/ReactiveScopes/InferReactiveIdentifiers.ts ModifiedR compiler/forget/src/__tests__/fixtures/compiler/_bug.primitive-computed-load.expect.md →compiler/forget/src/__tests__/fixtures/compiler/computed-load-primitive-as-dependency.expect.md RenamedR compiler/forget/src/__tests__/fixtures/compiler/_bug.primitive-computed-load.js →compiler/forget/src/__tests__/fixtures/compiler/computed-load-primitive-as-dependency.js RenamedPatch
Files changed
Rendering syntax-highlighted changes…