useState working in SSR but undefined in browser
Hey everyone,
I'm unsure how to tackle this, I have a composable:
In the front end if I
getUser
in the front end and console.log(user.value)
it's undefined, but if I return user.value
inside getUser()
everyone works as expected. I'm misunderstanding how state is used here. Can anyone explain where I'm going wrong?0 Replies