mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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`.