SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

[compiler] Fix false positive for useMemo reassigning context vars

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`.
J
Joe Savona committed
edcfb99b872c5fee288388f90687632ece96dba1
Parent: eb9aae8