Skip to content

[Fiber] Avoid duplicate debug info for array children#492

Closed
everettbu wants to merge 2 commits into
mainfrom
sebbie/fragment-double
Closed

[Fiber] Avoid duplicate debug info for array children#492
everettbu wants to merge 2 commits into
mainfrom
sebbie/fragment-double

Conversation

@everettbu

Copy link
Copy Markdown

Mirror of facebook/react#35733
Original author: eps1lon


Summary

For children arrays we create a Fragment Fiber with the debug info. However, we pushed that debug info again when reconciling the children arrays which lead to duplicate Server Component parent stacks in React DevTools.

Now we just push once when we create the Fragment Fiber.

How did you test this change?

  • added test
  • Flight fixture with
    function App() {
      return (
        <>
          <h1>App</h1>
          <div>Child</div>
        </>
      );
    }
    

@everettbu everettbu added CLA Signed React Core Team Opened by a member of the React Core Team labels Feb 9, 2026
@everettbu

Copy link
Copy Markdown
Author

Upstream PR was closed or merged. Code is synced via branch mirror.

@everettbu everettbu closed this Feb 9, 2026
@everettbu
everettbu deleted the sebbie/fragment-double branch February 9, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants