dillon1000/react

Commit

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.
Browse files
Changed paths2 files
First-parent comparison
A compiler/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 Added
Patch

Files changed

Rendering syntax-highlighted changes…