Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components missing? #252

Open
Faithfinder opened this issue Feb 13, 2025 · 5 comments
Open

Components missing? #252

Faithfinder opened this issue Feb 13, 2025 · 5 comments

Comments

@Faithfinder
Copy link

Faithfinder commented Feb 13, 2025

I can't always find the components in the tree. Here's comparison with DevTools:

Image

Where did HStack and Table go?

(setup is kinda basic Vite SPA, React 18.3)

@lxsmnsyc
Copy link
Collaborator

Hi, is it possible for you to produce a repro? I'd like to try it myself

@Faithfinder
Copy link
Author

I'll see what I can do, but I can't promise it fast - codebase is private, and I dunno what's the condition for components to not show up, so I can't quickly make a minimal repro. I do know that's just one example, missing components are all over the place for me

@arronKler
Copy link

meet the same problem too!
missing some component in the middle

@sandgraham
Copy link

I think the only components that can be inspected (and appear in component tree) are ones that render associated DOM elements:

export const getInspectableElements = (

const buildTreeFromElements = (elements: Array<InspectableElement>) => {

@anudeepreddy
Copy link

Why not traverse the fiber tree instead of the dom to create the component tree?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants