Is it possible to get currentUser on the server rendering?

Hi,
I wish to get the currentUser on the server side rendering cycle, is it possible?
Thanks

Hi Itamar,

is the server side rendering working in the context of the request of a user which is logged in?

Shlomi

Yes

Itamar,

Are you asking because you encountered any issue with that?

Shlomi

Yes and I want to use currentUser on server side rendering cycle. Is it possible ?

Hi Itamar,

you should write your code as if it was running in the browser, it should work as expected.
generally what you should be aware of, are ‘side effects’ and browser api (window size, cache etc)

Shlomi