#sveltekit
2025
Refactoring Svelte stores to $state runes Jan 18, 2025
One pattern that I love to use in my SvelteKit projects is returning writable stores from the layout’s load function. Can we migrate this to the new $state rune?
First thoughts on Svelte 5’s runes Jan 02, 2025
I’m migrating a big SvelteKit project to Svelte 5’s new runes syntax and I have to be honest: not a big fan of the increased number of lines, especially when it comes to the props.
2024
Svelte 5 sites don’t work as expected in Safari 12 and 13 Dec 03, 2024
Quite recently I upgraded a Svelte 4 project to Svelte 5, and soon afterwards I found some problems inside of Safari 12 and 13 that needed a tricky workaround.
Putting Svelte stores inside context for fun and profit Nov 12, 2024
Solving problems by putting writable reactive stores in Svelte’s context.
SvelteKit architecture tip: return a writable store from your load function Jul 20, 2024
How do you update content in real time when that content was fetched from the layout’s load function?
2023
2022
SvelteKit session refactor Aug 23, 2022
SvelteKit version 1.0.0-next.415 removed the session object and store. Refactoring my project wasn’t very straightforward, let’s go over the changes.
SvelteKit architecture - the solution Apr 22, 2022
Last August I wrote about trying to come up with the architecture for a SvelteKit app I was working on, and failing. I’m happy to say that I have found a solution for all my problems!
2021
Working around HttpOnly cookie problems in SvelteKit Dec 25, 2021
When HttpOnly cookies didn’t work as expected in my SvelteKit project I had to find a workaround.
Architecting a SvelteKit app - and failing Aug 15, 2021
Trying to architect a SvelteKit app so that it does as few requests as possible, from a central place, so that all subpages have access to the content.