Skip to content

fix(compiler-vapor): support keys in object v-bind - #16431

Open
modos wants to merge 1 commit into
vuejs:minorfrom
modos:fix/vapor-v-bind-key
Open

modos wants to merge 1 commit into
vuejs:minorfrom
modos:fix/vapor-v-bind-key

Conversation

@modos

@modos modos commented Nov 24, 2026

Copy link
Copy Markdown

Summary

Fixes #16421. Vapor mode was not handling a key passed through an object-form v-bind, so changing the key did not correctly replace the rendered node.

The compiler now reads key from object-form v-bind in source order. It uses the key to create a keyed fragment for native elements and passes it to dynamic components. A regression guard prevents the wrapped child from processing the same key again.

Tests

  • Added compiler regression tests for native elements and dynamic components using object-form v-bind.
  • pnpm exec vp run test compiler-vapor
  • pnpm exec vp run check

@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cf0129bc-be90-4e9c-9e4b-2c297a6661cd

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:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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.

1 participant