Skip to content

An i18n page shows no server HTML for a v-slot fill, and no browser test covers it #557

Open

Description

@JuroOravec

Follow-up to #168.

What happens

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

  1. 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.
  2. 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.

Pointers

  • PR feat(vue): write a v-slot fill's server HTML with the props its slot passes #447, "What does not change": the i18n page is still left to Vue as a whole (custom-hooks).
  • crates/citry_vue_compiler/src/server_render.rs (how the server reads a fill's slot function)
  • packages/py/citry/citry/_vue/direct_capture.py, fill_binding_pattern (adds $i18n to the fill's pattern)
  • packages/py/citry/citry/browser_render.py, template_context_names
  • 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

  1. added
    next-sprint
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions