Glossary coding Term Page
event.locals
the shared object between hooks and load functions where you can stash `user` info
Core Idea
event.locals is the shared object between hooks and load functions where you can stash user info. It usually makes the most sense alongside Session, Cookie, Route guard.
Why It Matters Here
Mathbong reuses this term across svelte posts as shared vocabulary.