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

Bug: Components tree auto collapse fail when using inspect. #143

Closed
Cat1007 opened this issue Jan 4, 2024 · 0 comments · Fixed by #151
Closed

Bug: Components tree auto collapse fail when using inspect. #143

Cat1007 opened this issue Jan 4, 2024 · 0 comments · Fixed by #151
Labels
bug Something isn't working client scope: devtools client

Comments

@Cat1007
Copy link

Cat1007 commented Jan 4, 2024

When inspecting a component, the component tree will not automatically expand to the level of the component if it has not been manually expanded.

I encountered the following error:

image

The relevant code is as follows:
https://github.com/vuejs/devtools-next/blob/main/packages/client/src/pages/components.vue#L124

image

When I manually expand the hierarchy to the component I want to inspect, then collapse the component tree manually, and then trigger the inspect of the component again, no error occurs. The component tree can be expanded normally.

It appears that manually expanding the component tree updates the componentTreeLinkedList, which allows the automatic expansion logic after manually expanding the component tree to work properly. However, if inspected directly, an error occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working client scope: devtools client
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants