dillon1000/react

Commit

Dont memoize hook calls in logical expressions

Fix the previous bug — this was a simple oversight, where FlattenScopesWithHooks 
overrode `visitValue()` but failed to call `traverseValue()`. This meant that 
when we reached compound expressions such as LogicalExpressions that we didn't 
traverse into their nested values, and didn't see the hooks hidden there.
Browse files
Changed paths2 files
First-parent comparison
M compiler/forget/src/ReactiveScopes/FlattenScopesWithHooks.ts ModifiedM compiler/forget/src/__tests__/fixtures/compiler/hook-inside-logical-expression.expect.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…