-
Notifications
You must be signed in to change notification settings - Fork 84
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
react-cookie-consent storing data twice on click #77
Comments
@Mastermindzh can you please help me out. It might be possible i am doing something wrong. |
The reload on the cookie tab is normal. That is a browser thing. The cookie is available instantly but the UI just doesn't refresh on its own. It setting two cookies is also perfectly normal. One of them is named "legacy" because some browsers can't read the first cookie because of the same-site settings. See issue for more details. I will add an explanation to the readme so others are aware as well. |
It save two cookies of same name in my case 'language' |
Can you provide a stackblitz or some more code? |
It worked thanks now 2 cookies are storing 1 is which. i am storing an other with legacy. Any ways thanks for replies @Mastermindzh |
No problem, glad it's resolved. |
Hey i am using this npm package https://www.npmjs.com/package/react-cookie-consent for creating a cookies consent in my react type script app now and through this package i can store some data in cookies after user permission. Now there are two problems first it is storing after clicking on accept button it stores two object in cookies, second the change in cookies is not showing immediately in application tab in cookies section i had to reload to see the changes.
The text was updated successfully, but these errors were encountered: