Skip to content
Discussion options

You must be logged in to vote

Yeah this is a great question! For this specific use case, we use the second variant because "user" is a global singleton. And we also have an effect to revalidate when:

  • sessionId changes
  • logging out

Seems like a special case though, but good to have a section or example in the documentation. I'll note this down!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants