dillon1000/react

Commit

[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 

```
Browse files
Changed paths3 files
First-parent comparison
M compiler/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 Renamed
Patch

Files changed

Rendering syntax-highlighted changes…