2 Replies
I wrote a post on adding server-side session data by storing an ID to a session document in sessionStorage on the client, and passing it as a parameter, and I wrote helpers so you don't have to explicitly pass the ID (
useSessionQuery
) or look up the ID on the server (queryWithSession
): https://stack.convex.dev/sessions-wrappers-as-middlewareSessions: Wrappers as "Middleware"
How to implement session storage with Convex, using some helper functions we wrote. While most of your data is associated with a user or another docum...
indeed
quite a good article