dillon1000/react
Commit
Browse files Memoize fbt children in same scope
Fixes another special-case rule of fbt that i wasn't aware of: apparently `<fbt:param>` elements don't have to appear as direct children of `<fbt>`, they can be nested, and in this case they must appear as direct children of the fbt and not via an identifier indirection. This PR recursively extends the scope of FBT operands to make this work.
Changed paths7 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/Entrypoint/Pipeline.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/MemoizeFbtOperandsInSameScope.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/Utils/logger.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/fbt-params-complex-param-value.expect.md ModifiedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/fbtparam-with-jsx-element-content.expect.md AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/fbtparam-with-jsx-element-content.js AddedM compiler/packages/sprout/src/SproutTodoFilter.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…