Skip to content
Snippets Groups Projects
Commit 5cf9996a authored by Joe Savona's avatar Joe Savona
Browse files

compiler: Improve ValidateNoRefAccessInRender to ignore access in effects

Improves ValidateNoRefAccessInRender (still disabled by default) to properly ignore ref access within effects. This includes allowing ref access within functions that are only transitively called from an effect.

While I was here I also added some extra test fixtures for allowing global mutation in effects.

ghstack-source-id: fb6352a1788b7bdbebb40d5b844b711ef87d6771
Pull Request resolved: https://github.com/facebook/react/pull/29151
parent 1d6eebfb
No related merge requests found
Showing
with 774 additions and 15 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment