Svelte · Senior · Question 26 of 75

What does event.locals give you in SvelteKit?

Explanation

Type it via App.Locals in app.d.ts. Because it's per request, it's safe for user data.

Further reading

Problem with a question

Svelte · Senior · question 26

Test yourself

Take the Svelte · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz