-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 doesn't support options
on remove
#1518
Comments
for me I used |
No, there is no way to get the cookie domain. It's a security function, as the dev should know the domain of the cookie they are manipulating. |
Fixed in react-hookz/web in react-hookz/web#117 |
so , why not to merge this pull request ? |
Unfortunately, He's since moved moved on to react-hookz/web. |
What is the current behavior?
useCookie
currently doesn't supportoptions
onremove
. That means that you can't remove any scoped cookies. See https://stackoverflow.com/questions/54861709/cookies-removeabc-not-working-in-reactjs/55593030 and bendotcodes/cookies#16.Steps to reproduce it and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have extra dependencies other than
react-use
. Paste the link to your JSFiddle or CodeSandbox example below:What is the expected behavior?
A little about versions:
react-use
: 15.3.4The text was updated successfully, but these errors were encountered: