SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

[compiler] Don't validate when effect cleanup function depends on effect localized setState state derived values

Summary:
If we are using a clean up function in an effect and that clean up function depends on a value that is used to set the state we are validating for we shouldn't throw an error since it is a valid use case for an effect.

Test Plan:
added test
J
Jorge Cabiedes Acosta committed
91e739e950defae15773980a06d7117d4e9447c2
Parent: f76c361