dillon1000/react

Commit

Special-case fbt() function call form

Similar to what we did for `<fbt>` jsx elements, this PR ensures that `fbt()` 
calls have their operands memoized in the same scope to honor the limited 
contract for what's allowed as an argument of an fbt() call expression.
Browse files
Changed paths5 files
First-parent comparison
M compiler/forget/src/ReactiveScopes/MemoizeFbtOperandsInSameScope.ts ModifiedA compiler/forget/src/__tests__/fixtures/compiler/fbt-call-complex-param-value.expect.md AddedA compiler/forget/src/__tests__/fixtures/compiler/fbt-call-complex-param-value.js AddedA compiler/forget/src/__tests__/fixtures/compiler/fbt-call.expect.md AddedA compiler/forget/src/__tests__/fixtures/compiler/fbt-call.js Added
Patch

Files changed

Rendering syntax-highlighted changes…