dillon1000/react
Commit
Browse files 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`.
Changed paths2 files
First-parent comparisoncompiler/forget/src/__tests__/fixtures/compiler/useEffect-nested-lambdas.expect.md AddedA compiler/forget/src/__tests__/fixtures/compiler/useEffect-nested-lambdas.js AddedPatch
Files changed
Rendering syntax-highlighted changes…