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

[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-source-id: 8b05494224bbc647221fa798a66b097fcb3c442b
Pull Request resolved: https://github.com/facebook/react/pull/33470
parent 6e6103ff
No related merge requests found
Showing with 225 additions and 26 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