-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useCookie
returns undefined
on SSR
#991
Comments
This is the same behavior in nuxt 3. |
@wattanx |
Can you show us what kind of source code examples you have? |
It's just a simple page that reads cookie
https://stackblitz.com/edit/github-zil2p9-fvxznq?file=app.vue I have a repository with same setup in Nuxt Bridge too |
@wattanx https://stackblitz.com/~/github.com/evgenii-code/nuxt-bridge-use-cookie-ssr
https://nuxtbridgeusecookiessr-31vc--3000--6843a59c.local-credentialless.webcontainer.io/ |
Oh sorry. I guess I needed to see it in a |
Yeah, it looks like in the RC.4, the bug is gone. But I cant figure out how to update my repository to RC.4
I have tried to delete I think it is because we have
|
As you say, I think it is because |
Fixed at #998 |
Environment
Reproduction
Minimal repo
https://github.com/evgenii-code/nuxt-bridge-use-cookie-ssr
npm i
npm run dev
Describe the bug
Composable
useCookie
returnsundefined
on SSR,But on a client
useCookie
works as intended.Code of a simple component, that uses cookie on SSR
Video of a bug
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: