You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
An i18n page shows no server HTML for a v-slot fill, and no browser test covers it #557
When a page uses a configured i18n extension, Citry leaves the whole page for Vue to build in the browser. So a <c-fill v-slot="{ row }"> on such a page shows no server HTML: the fill appears only once Vue starts. On a page without i18n, the server writes the fill with the props its slot passes (#447).
The Rust server renderer already reads the slot function Citry writes for an i18n page ({ $i18n, row }), but only a Rust test covers that form. No browser test renders a scoped slot on an i18n page.
What to do
Let an i18n page keep its server HTML for v-slot fills, treating $i18n as a value only the browser knows, so only the parts of the fill that read it are built in the browser.
Add a browser test: an i18n page with a <c-slot :row> and a v-slot fill, checking the server HTML, that Vue takes it over without a hydration mismatch, and that switching the language updates the fill.
Docs: docs_site/content/vue/server-rendering.md (parts Vue builds in the browser)
Error mode
Today nothing fails: the page shows the fill late. If the change gets the props wrong, Vue reports a hydration mismatch and rebuilds the part, so the browser test must assert that no mismatch warning appears.
Activity