Write SvelteKit Load Functions
Create type-safe SvelteKit load functions for page data fetching.
Insert label
Load Function Prompt
Write a SvelteKit load function for this page. Decide whether it belongs in +page.ts (universal) or +page.server.ts (server-only) based on whether it needs secrets, database access, or can run in the browser. Add proper TypeScript types, handle errors with error(), and return typed data for the page component.
Add this to your Facet Inserts in Crystl for one-click access.
Get Crystl