$ the-wire · showcase
Hydration fixes for nested teleports and SSR boolean-ish props
By RepoJournal · Filed · About Vue.js · Composed from the cited sources · methodology
vuejs/core landed two hydration-and-SSR fixes: disabled Teleports no longer race nested Teleports for the same target anchors, and the SSR compiler now emits real HTML attribute names for static DOM prop aliases.
fix(hydration): claim disabled teleport target anchors before nested teleports (fix #16332) vuejs/core
When a disabled `<Teleport>` wraps a nested `<Teleport>` pointing at the same target, SSR writes the outer's empty anchor pair into the target before the nested block, but hydration walked the children first and only then called `hydrateAnchor()`, so the nested teleport claimed the outer's anchors and the outer rewound its target. The fix, per the PR description, claims the disabled teleport's ...
fix(compiler-ssr): map static DOM prop aliases to HTML attribute names vuejs/core
Server-rendered HTML now uses the expected attribute names for static `className`, `htmlFor`, `acceptCharset`, and `httpEquiv` props instead of the camelCase aliases. Existing behavior is preserved for SVG, custom elements, unrelated attributes, and cases where the mapped attribute is already present, and bound and bare attributes are both covered.
fix(#2261): exclude renderToString from the browser builds vuejs/test-utils
`renderToString` is now excluded from the browser builds, where it threw `ReferenceError: __VUE_OPTIONS_API__ is not defined` at runtime because that compile-time flag is never defined for a browser bundle. Test code importing it from the esm-browser entry will need the Node build instead.
fix: find components by registered name inside slots vuejs/test-utils
`findComponent({ name })` and `findAllComponents({ name })` locate unnamed components by their registered or imported key, but failed to do so when the component rendered inside another component's slot or inside `<transition>`. The default create-vue scaffold hits it, passing template-only icon SFCs into `WelcomeItem`'s `#icon` slot, so tests querying those icons had to fall back on other sele...