The first @astro.build v6 + Svelte 5 website I’m happy to ship to production. Prelim. result of migrating a „historically grown“ content-heavy website (500+ routes). We tried to tackle to complexity by nesting & some shallow routing trickery I owe to @vtbag.dev. Really grateful for Server Islands 🙏
Post
correlaid.orgHomeCorrelAid brings data to civil society: 2400+ data scientists support nonprofits through projects, education and consulting for Data4Good impact.
Oh wow, the shallow routing trick has been in the making for a long time… but now its properly linked up with Svelte’s reactivity via createSubscriber. That’s how the mobile nav knows when we transition bsky.app/profile/fubi...
Ok, so this coupled with prefetching on hover is actually kind of nice. For my use case I had to tweak 3 view transition lifecycle events (to preserve scroll position and to handle only specific routes) - but it works so far. Again, @astro.build docs are superb: docs.astro.build/en/guides/vi...
0 reposts1 like
No replies yet.