useCookie
creates a cookie even with readonly: true
. Is this a bug?
#32895
Unanswered
cezarsmpio
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I recently used
useCookie
because I only needed to read a cookie, and not necessarily to create one. However, usinguseCookie
passing a default +readonly: true
forces the cookie to be created.This creates a cookie with empty string:
This doesn't:
I also found documentation a bit unclear about this behavior. Should this be considered a bug with
useCookie
or it's expected to work this way? What you think?Beta Was this translation helpful? Give feedback.
All reactions