Skip to content

fix(runtime-vapor): update custom element children from reactive props - #14913

Merged
edison1105 merged 3 commits into
minorfrom
edison/fix/ceBugs
Jun 4, 2026
Merged

edison1105 merged 3 commits into
minorfrom
edison/fix/ceBugs

Conversation

@edison1105

@edison1105 edison1105 commented Jun 4, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Tests

    • Enhanced custom element test suite with improved synchronization points and updated test scenarios.
    • Added test coverage for nested child component prop updates.
  • Refactor

    • Updated custom element lifecycle and component instance handling.
    • Adjusted effect registration mechanisms for consistency.

@edison1105 edison1105 added the scope: vapor related to vapor mode label Jun 4, 2026
@coderabbitai

coderabbitai Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9b2aeb8a-8793-4947-9106-9633495363ed

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch edison/fix/ceBugs

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 86.5 kB 30.3 kB 26.6 kB
runtime-dom.global.prod.js 113 kB 42.6 kB 38.2 kB
vue.global.prod.js 173 kB 62.4 kB 55.7 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 51.6 kB 20.1 kB 18.4 kB
createApp 60.6 kB 23.5 kB 21.3 kB
createApp + vaporInteropPlugin 107 kB (-45 B) 38.5 kB (-14 B) 34.7 kB (-40 B)
createVaporApp 30.1 kB (-45 B) 11.5 kB (-16 B) 10.6 kB (-12 B)
createSSRApp 65.2 kB 25.3 kB 23 kB
createVaporSSRApp 36.5 kB (-47 B) 13.8 kB (-18 B) 12.7 kB (-9 B)
defineCustomElement 67.2 kB 25.5 kB 23.1 kB
defineVaporCustomElement 49.8 kB (+8.34 kB) 17.6 kB (+2.79 kB) 16.1 kB (+2.56 kB)
overall 75.9 kB 28.9 kB 26.2 kB

@pkg-pr-new

pkg-pr-new Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@vue/compiler-core

pnpm add https://pkg.pr.new/@vue/compiler-core@14913
npm i https://pkg.pr.new/@vue/compiler-core@14913
yarn add https://pkg.pr.new/@vue/compiler-core@14913.tgz

@vue/compiler-dom

pnpm add https://pkg.pr.new/@vue/compiler-dom@14913
npm i https://pkg.pr.new/@vue/compiler-dom@14913
yarn add https://pkg.pr.new/@vue/compiler-dom@14913.tgz

@vue/compiler-sfc

pnpm add https://pkg.pr.new/@vue/compiler-sfc@14913
npm i https://pkg.pr.new/@vue/compiler-sfc@14913
yarn add https://pkg.pr.new/@vue/compiler-sfc@14913.tgz

@vue/compiler-ssr

pnpm add https://pkg.pr.new/@vue/compiler-ssr@14913
npm i https://pkg.pr.new/@vue/compiler-ssr@14913
yarn add https://pkg.pr.new/@vue/compiler-ssr@14913.tgz

@vue/compiler-vapor

pnpm add https://pkg.pr.new/@vue/compiler-vapor@14913
npm i https://pkg.pr.new/@vue/compiler-vapor@14913
yarn add https://pkg.pr.new/@vue/compiler-vapor@14913.tgz

@vue/reactivity

pnpm add https://pkg.pr.new/@vue/reactivity@14913
npm i https://pkg.pr.new/@vue/reactivity@14913
yarn add https://pkg.pr.new/@vue/reactivity@14913.tgz

@vue/runtime-core

pnpm add https://pkg.pr.new/@vue/runtime-core@14913
npm i https://pkg.pr.new/@vue/runtime-core@14913
yarn add https://pkg.pr.new/@vue/runtime-core@14913.tgz

@vue/runtime-dom

pnpm add https://pkg.pr.new/@vue/runtime-dom@14913
npm i https://pkg.pr.new/@vue/runtime-dom@14913
yarn add https://pkg.pr.new/@vue/runtime-dom@14913.tgz

@vue/runtime-vapor

pnpm add https://pkg.pr.new/@vue/runtime-vapor@14913
npm i https://pkg.pr.new/@vue/runtime-vapor@14913
yarn add https://pkg.pr.new/@vue/runtime-vapor@14913.tgz

@vue/server-renderer

pnpm add https://pkg.pr.new/@vue/server-renderer@14913
npm i https://pkg.pr.new/@vue/server-renderer@14913
yarn add https://pkg.pr.new/@vue/server-renderer@14913.tgz

@vue/shared

pnpm add https://pkg.pr.new/@vue/shared@14913
npm i https://pkg.pr.new/@vue/shared@14913
yarn add https://pkg.pr.new/@vue/shared@14913.tgz

vue

pnpm add https://pkg.pr.new/vue@14913
npm i https://pkg.pr.new/vue@14913
yarn add https://pkg.pr.new/vue@14913.tgz

@vue/compat

pnpm add https://pkg.pr.new/@vue/compat@14913
npm i https://pkg.pr.new/@vue/compat@14913
yarn add https://pkg.pr.new/@vue/compat@14913.tgz

commit: 5f9a8ac

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/runtime-vapor/src/apiDefineCustomElement.ts`:
- Around line 249-255: The current no-op _update() makes all external prop/attr
writes asynchronous and regresses CE visibility; restore a synchronous root
update path in _update() so the element's root is patched immediately while
leaving descendant-reactive updates on the next scheduler flush. Replace the
no-op with a call to the existing synchronous root-patching routine used
elsewhere in this class (e.g., invoke the method or code that mounts/patches the
root component — reference the "root component" / "root patch" logic in this
class) so attribute writes become visible the same tick, and keep the
reactive-props descendant update scheduling untouched.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5c31a56e-bada-489f-a4c3-11128f4c1bf8

📥 Commits

Reviewing files that changed from the base of the PR and between 98c3fc9 and 5f9a8ac.

📒 Files selected for processing (4)
  • packages/runtime-vapor/__tests__/customElement.spec.ts
  • packages/runtime-vapor/src/apiDefineCustomElement.ts
  • packages/runtime-vapor/src/component.ts
  • packages/runtime-vapor/src/renderEffect.ts

@edison1105
edison1105 marked this pull request as ready for review June 4, 2026 02:11
@edison1105
edison1105 merged commit 13454a7 into minor Jun 4, 2026
14 checks passed
@edison1105
edison1105 deleted the edison/fix/ceBugs branch June 4, 2026 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: vapor related to vapor mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant