Good way to create session cookie on every route?
I just made component like that which i imported to root.tsx, so that it would run on every route. Seems to work but is this good way to do so?
Then I just return this in createOrGetUser() on server. (there is other code for database and stuff but return is the important bit)
0 Replies