dillon1000/react
Commit
Browse files Fix calculation of nested function dependencies
We were incorrectly calculating the dependencies of nested lambdas, because the "component" scope was incorrectly set to the next closest parent rather than outermost React function (component/hook) being compiled.
Changed paths3 files
First-parent comparisoncompiler/forget/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts ModifiedA compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/repro.expect.md AddedA compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/repro.js AddedPatch
Files changed
Rendering syntax-highlighted changes…