dillon1000/react

Commit

Repro for unmemoized readonly callback

Repro of a closure that we currently treat as readonly because it captures a 
possibly-mutable value, but which we later realize is not mutable. Specifically, 
when we check `exit()` we think `dispatch()` is mutable and therefore consider 
it captured, which means we can't independently memoize `exit`.
Browse files
Changed paths2 files
First-parent comparison
A compiler/forget/src/__tests__/fixtures/compiler/useEffect-nested-lambdas.expect.md AddedA compiler/forget/src/__tests__/fixtures/compiler/useEffect-nested-lambdas.js Added
Patch

Files changed

Rendering syntax-highlighted changes…