Skip to content

SSR: Make the Route component register during initialization #177

Description

@webJose

It occurs to me that the code that registers the route in the router could run, with initial parameter values, during the initialization of the Router component. This will enable SSR of all matching routes.

As it currently is, this only happens during an effect, and effects don't run on the server. There are no errors, but no content renders either.

This, however, doesn't affect @svelte-router/kit, as hash fragments never reach the server, and @svelte-router/kit can only do hash routing (single or multi).

This would be for custom SSR frameworks/scenarios that use path routing.

I'm setting the priority to Low for now. Interested people: Upvote to change to a higher priority.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: LowLow priority. Upvote to request a higher priority.SSRServer-Side Rendering related.

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions