Basics
January 6, 2025 1 minutes • 43 words
Sveltekit does:
- Routing
- Loading
- Rendering
Loading
export function load({params}) {
const post = posts.find((post) => post.slug == params.slug);
return { post };
}
Form
export const actions = {
default: async ({ cookies, request}) => {
const data = await request.data();
}
}