Skip to content

Conversation

@hannojg
Copy link
Contributor

@hannojg hannojg commented Dec 1, 2025

Summary

I noticed that when we suspend a component in fabric react and in that component a state update occurs, that we still will call completeRoot.

This has performance implications, as completeRoot will call into c++ and invoke ShadowTree::commit.

I think that when a suspended component has a state update and we still show the very same fallback component, then there should be no completeRoot call, as technically, nothing has changed about the UI output.

I believe that this is a bug with in react-reconciler / react fabric

How did you test this change?

This PR merely adds a test case that demonstrates that this seems to be broken, to raise the discussion if this needs to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant