dillon1000/react
Commit
Browse files 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.
Changed paths5 files
First-parent comparisoncompiler/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 AddedPatch
Files changed
Rendering syntax-highlighted changes…