[Compiler] Don't count a setState in the dependency array of the effect it is called on as a usage
Summary: The validation only allows setState declaration as a usage outside of the effect. Another edge case is that if you add the setState being validated in the dependency array you also make the validation opt out since it counts as a usage outside of the effect. Added a bit of logic to consider the effect's deps when creating the cache for setState usages within the effect Test Plan: Added a fixture
J
Jorge Cabiedes Acosta committed
cd1d0dc2dc9e99ba1eaebc4e97e408bdf36f7c15
Parent: 93fc574