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

fix: redundant re-render and loss of collapsed state for inspector tree/state component #124

Merged

Conversation

Azurewarth0920
Copy link
Collaborator

fix: #110

Fix redundant re-render on InspectorState panel

Before:

The +/- buttons keep flickering (unnecessary rerender) and the whole InspectorState panel tree keeps rerendering.

before.mov

After:

Only the count is updated.

after.mov

Keep collapsed state on component inspect panel

The collapsed state is always re-created after the component is updated and the current state is discarded.
Merge the current state into the re-calculated state.

Copy link

netlify bot commented Jan 1, 2024

Deploy Preview for vue-devtools-docs canceled.

Name Link
🔨 Latest commit 2c1d0aa
🔍 Latest deploy log https://app.netlify.com/sites/vue-devtools-docs/deploys/6592a8427e22fb00080c2b62

@Azurewarth0920 Azurewarth0920 force-pushed the fix/fix-forced-rerender-on-panels branch from 07643e9 to 2c1d0aa Compare January 1, 2024 11:55
@webfansplz webfansplz changed the title fix(client): Fix redundant re-render on InspectorState panel and keep collapsed state on component inspect panel fix(client): redundant re-render and loss of collapsed state for inspector tree/state component Jan 2, 2024
@webfansplz webfansplz changed the title fix(client): redundant re-render and loss of collapsed state for inspector tree/state component fix: redundant re-render and loss of collapsed state for inspector tree/state component Jan 2, 2024
@webfansplz
Copy link
Member

LGTM, thanks.

@webfansplz webfansplz merged commit 11876c8 into vuejs:main Jan 2, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

Should not collapse component tree after edit component state
2 participants