mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Within a function expresssion local variables use StoreContext, not StoreLocal, so the reassignment check here was firing too often. We should only report an error for variables that are declared outside the function, ie part of its `context`.