Skip to content

Sentry within Next.js (App router) - how do I "setUser" for server/client components? Missing in logs #10019

Answered by lforst
cpotey asked this question in Q&A
Discussion options

You must be logged in to vote

To add to my comment here: #10019 (reply in thread)

Server and client components are also separated logically. Meaning that when you call setUser() on the server, it is not propagated to the client. On the client you would also have to call the method.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@lforst
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by cpotey
Comment options

You must be logged in to vote
2 replies
@lforst
Comment options

@jimydavis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants