[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
9ea13dd3848c68fa70d135dbfb9d33b718a3c738
Parent: f76c361