Skip to content

fix(kit): resolve timeline component names before registration - #1157

Merged
webfansplz merged 2 commits into
mainfrom
fix/timeline-component-name
Oct 15, 2026
Merged

webfansplz merged 2 commits into
mainfrom
fix/timeline-component-name

Conversation

@webfansplz

Copy link
Copy Markdown
Member

No description provided.

Performance and component-emit events can fire before the component is
registered (e.g. during init and the first render), so the registry lookup
failed and the timeline showed "Unknown Component". Fall back to reading
the name from the instance, matching the component tree.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 14, 2026 12:25
@netlify

netlify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vue-devtools-docs canceled.

Name Link
🔨 Latest commit 60c76dd
🔍 Latest deploy log https://app.netlify.com/projects/vue-devtools-docs/deploys/6acf79afb94219ac182a16e3

@pkg-pr-new

pkg-pr-new Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@vue/devtools-api@1157
npm i https://pkg.pr.new/@vue/devtools-kit@1157
npm i https://pkg.pr.new/vite-plugin-vue-devtools@1157

commit: 60c76dd

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The corrected pre-registration behavior lacks regression assertions in the existing timeline tests.

2 open findings
What changed in this PR

Resolves timeline component names before registry registration.

Changes:

  • Reuses registry name resolution for timeline events.
  • Handles component emit and performance events consistently.
File Description
packages/​kit/​src/​runtime/​timeline.ts Resolves names directly from unregistered instances.
packages/​kit/​src/​runtime/​registry.ts Exports the shared name resolver.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/kit/src/runtime/timeline.ts
Comment thread packages/kit/src/runtime/timeline.ts
@webfansplz
webfansplz merged commit 66dd8af into main Oct 15, 2026
8 checks passed
@webfansplz
webfansplz deleted the fix/timeline-component-name branch October 15, 2026 04:31
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.

2 participants