Skip to content

Support initial serialized page data with client-only rendering#2287

Description

@meoyawn

Duplicates

Summary 馃挕

I want to avoid hydration without creating an initial fetch waterfall for route props.

Currently:

  • ssr: true sends props with the initial response, but also renders application HTML and requires hydration.
  • ssr: false avoids hydration, but createAsync() / query() data is fetched after the client boots.

Requested mode:

  • Resolve route data on the server.
  • Return an HTML shell, client scripts, and serialized initial props in one response.
  • Do not render application HTML on the server.
  • Seed the client with those props and use render() instead of hydrate().

This resembles the Inertia page object: the initial response carries the matched component, props, URL, and version so the client can render immediately.

Motivation 馃敠

Avoid maintaining hydration while preserving one request for both the document and its initial data. No duplicate server/client HTML rendering and no follow-up request waterfall for initial props.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions