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

DevTools: merge element fields in TreeStateContext #31956

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hoxyq
Copy link
Contributor

@hoxyq hoxyq commented Jan 2, 2025

Stacked on #31892, see commit on top.

For some reason, there were 2 fields different fields for essentially same thing: selectedElementID and inspectedElementID. Basically, the change is:

selectedElementID -> inspectedElementID
selectedElementIndex -> inspectedElementIndex

I have a theory that it was due to previously used async approach around element inspection, and the whole InspectedElementView was wrapped in Suspense.

Copy link

vercel bot commented Jan 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ❌ Failed (Inspect) Jan 7, 2025 1:58pm

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jan 2, 2025
@hoxyq hoxyq changed the title React devtools/merge tree state context DevTools: merge element fields in TreeStateContext Jan 2, 2025
@hoxyq hoxyq force-pushed the react-devtools/merge-tree-state-context branch from b1ea47d to 6356de4 Compare January 7, 2025 13:58
@hoxyq hoxyq marked this pull request as ready for review January 7, 2025 14:00
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