Downside to calling getSession() in SvelteKit hooks?

Would there be any waterfalling or downsides to utilizing getSession() in hooks.server.ts in SvelteKit, and then passing down Session and User to locals?
3 Replies
bekacru
bekacru3mo ago
No. It's actually better.
Cory
CoryOP3mo ago
How so?
bekacru
bekacru2mo ago
since you can share the session globally.

Did you find this page helpful?