The Wire · Showcase
MERGE PROPS BREAKS VUE JSX SPREAD
By RepoJournal · Filed · About Vue.js
Vue's JSX compiler just shipped an escape hatch that could change how you handle spread attributes, and your sidebar might be losing its sparkle.
The top story lands in vue-jsx-vapor with a new `mergeProps` option [1] that lets you switch spread-attribute merging from Vue's `mergeProps` helper to a plain `Object.assign` override behavior, fixing a naive-ui issue [1]. This is a targeted control for when merging event listeners and class/style gets in the way. Meanwhile, VitePress has a subtle SSR regression [2] where sidebar active states stopped rendering in static HTML, breaking pre-hydration highlighting and the docsearch crawler's lvl0 selector. The fix is in as a PR [2], but you'll want it before your next docs deploy. Two docs PRs [3][4] polish the markdown guide's 'Part file' section, including a Chinese translation, so keep the docs ship moving (4 commits, 2 PRs across the period).
One email a day. Unsubscribe in one click.
Keep up with Vue.js in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Review vue-jsx-vapor PR #64 and test the mergeProps option if you rely on spread override behavior vuejs/vue-jsx-vapor [plan]
- → Track VitePress PR fixing sidebar SSR to restore docsearch highlighting vuejs/vitepress [monitor]
References
- [1] feat(compiler/vdom): add mergeProps option ↗ vuejs/vue-jsx-vapor
- [2] fix(theme): render sidebar active state during ssr vuejs/vitepress
- [3] docs(markdown): update and correction of 'Part file' translation ↗ vuejs/vitepress
- [4] docs(zh): translate 'Part file' in markdown guide (#5391) vuejs/vitepress