mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Update base for Update on "[compiler][newinference] Improve hoisted functions, validation of mutate-after-render"
Updates ValidateNoFreezingMutableFunctions to account for indirections, where the frozen function calls another function that actually does the mutation. We just need to propagate on the mutation. Also some fixes for hoisted functions, DeclareContext can actually appear twice, so we need to check that subsequent (re)declarations are treated as a mutation, not a creation. [ghstack-poisoned]
This commit is contained in:
1 parent
2062925d37
commit
bf1b002200