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.
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
Routercomponent. 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/kitcan 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.