Repository navigation
fix(runtime-vapor): update custom element children from reactive props - #14913
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Size ReportBundles
Usages
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-sfc
@vue/compiler-ssr
@vue/compiler-vapor
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/runtime-vapor
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
There was a problem hiding this comment.
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
📒 Files selected for processing (4)
packages/runtime-vapor/__tests__/customElement.spec.tspackages/runtime-vapor/src/apiDefineCustomElement.tspackages/runtime-vapor/src/component.tspackages/runtime-vapor/src/renderEffect.ts
Summary by CodeRabbit
Tests
Refactor