dillon1000/react
Commit
Browse files 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.
Changed paths2 files
First-parent comparisoncompiler/forget/src/ReactiveScopes/FlattenScopesWithHooks.ts ModifiedM compiler/forget/src/__tests__/fixtures/compiler/hook-inside-logical-expression.expect.md ModifiedPatch
Files changed
Rendering syntax-highlighted changes…