Day 12 โ€” send custom types across the network boundary in SvelteKit, whether it's a class containing reactive state, a class used by your database ORM library, or whatever. Just export a `transport` object from your `hooks.js`

๐ŸŽ docs https://svelte.dev/docs/kit/hooks#Universal-hooks-transport
๐ŸŽ demo https://stackblitz.com/edit/sveltejs-kit-template-default-b5zbxomg?file=src%2Fhooks.js
Post image

Comments