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
bekacru4mo ago
No. It's actually better.
Cory
CoryOP4mo ago
How so?
bekacru
bekacru3mo ago
since you can share the session globally.

Did you find this page helpful?