Svelte does not support routing out of the box. The closest official solution is to use Sapper. Some other people have built client side routing libraries as well when using Svelte as a SPA.
Overall itβs a really good framework, and my personal favorite.
I just built my first full site with Svelte this weekend and svelte-routing worked nicely for me (I probably got a bit too far trying to write my own before reaching out to this library).
I'm enjoying the workflow so far. Even got pre-rendered static pages working too.
Svelte does not support routing out of the box. The closest official solution is to use Sapper. Some other people have built client side routing libraries as well when using Svelte as a SPA.
Overall itβs a really good framework, and my personal favorite.
Yea I'm using a 3rd party router myself.. Works ok :)
Which one did you find luck with?
github.com/EmilTholin/svelte-routing
I just built my first full site with Svelte this weekend and svelte-routing worked nicely for me (I probably got a bit too far trying to write my own before reaching out to this library).
I'm enjoying the workflow so far. Even got pre-rendered static pages working too.
How are you prerendering svelte? We used Sapper, but it has a collection of issues.
I have not tried Svelte as just a SPA yet. I wonder if I should...
I took inspiration from this example: github.com/akaSybe/svelte-prerende...
I'll have to write up what I did when I have time.