dillon1000/react
Commit
Browse files Add failing test for DropMemoCalls failing to DCE dep array
Found this while running Forget on the React tests. This isn't a high priority because the ESLint plugin would've caught this. But it'd be nice if either our validation rules caught this or if our compiler did correctly eliminate the dep array.
Changed paths2 files
First-parent comparisoncompiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/bug.useMemo-deps-array-not-cleared.expect.md AddedA compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/bug.useMemo-deps-array-not-cleared.js AddedPatch
Files changed
Rendering syntax-highlighted changes…