dillon1000/react

Commit

[Fiber] Remove array indirection in host context (#8544)

* Remove array indirection in host context

* Keep a single context stack with a null sentinel

This lets us keep subtrees separated without maintaining independent context arrays for subtrees.

* There is always exactly one null by the time we pop a portal

I was trying to be smart but didn't need to.

* Cache current context
Browse files
Changed paths1 file
First-parent comparison
M src/renderers/shared/fiber/ReactFiberHostContext.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…