Skip to content
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

Can't get cookie in App loading request #99

Closed
Limin-Sun opened this issue Aug 28, 2017 · 7 comments
Closed

Can't get cookie in App loading request #99

Limin-Sun opened this issue Aug 28, 2017 · 7 comments

Comments

@Limin-Sun
Copy link

Limin-Sun commented Aug 28, 2017

I can see the cookie in App loading request, but I can't get it by calling getAll() or get(name). I only can get different cookie after I add it by calling set(name, value) in my code.

@Limin-Sun Limin-Sun changed the title Can't get cookie in App load request Can't get cookie in App loading request Aug 28, 2017
@eXon
Copy link
Collaborator

eXon commented Aug 29, 2017

Hi @Limin-Sun

Do you have an example or a step-by-step process to replicate your issue?

Thank you

@Limin-Sun
Copy link
Author

Limin-Sun commented Aug 29, 2017 via email

@eXon
Copy link
Collaborator

eXon commented Sep 3, 2017

Are you using this with server-rendering? If so, you need to pass the cookie header to the CookiesProvider. There is an example in the readme.

@Limin-Sun
Copy link
Author

Limin-Sun commented Sep 5, 2017 via email

@eXon
Copy link
Collaborator

eXon commented Sep 14, 2017

@Limin-Sun What version of react-cookie are you using?

@eXon eXon closed this as completed Jun 16, 2018
@eXon
Copy link
Collaborator

eXon commented Jun 16, 2018

Closed due to inactivity. Let me know if you're still having troubles here.

@mschipperheyn
Copy link

He's likely running into reduxjs/react-redux#914. I suggest you reopen this.
I'm running into this also. Should be hard to fix. Just move the withCookies to the component instead of the connect or something like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants