Skip to content

[DevTools Bug]: DevTools shouldn't skip over keyed Fragments in the tree #25187

Closed

Description

@gaearon

Website or app

reactjs/react.dev#4981

Repro steps

  1. Wrap something into <Fragment key="stuff">
  2. It doesn't show up in DevTools

We filter out fragments because they tend to be useless. But this one is important! Keys are crucial and we should show anything with a key in the tree.

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

Activity

  1. timagixe commented on Sep 5, 2022

    @timagixe

    Hi @gaearon, I would like to give it a shot, if you think this bug is a beginner friendly.

    Could you please point which exact package should I look at? I see there are seven of them related to devtools:

    react-devtools-core
    react-devtools-extensions
    react-devtools-inline
    react-devtools-shared
    react-devtools-shell
    react-devtools-timeline
    react-devtools
    
  2. removed
    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug
    on Sep 6, 2022
  3. added a commit that references this issue on Sep 7, 2022
    c80e541
  4. added a commit that references this issue on Sep 11, 2022
    a78c298
  5. added a commit that references this issue on Oct 5, 2022
    72f5995
  6. added a commit that references this issue on Jun 25, 2026
    3bb443d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions