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

React-cookie: pass options in useCookies #386

Closed
Armanio opened this issue Aug 25, 2023 · 1 comment
Closed

React-cookie: pass options in useCookies #386

Armanio opened this issue Aug 25, 2023 · 1 comment

Comments

@Armanio
Copy link

Armanio commented Aug 25, 2023

Hi! First thank for handful lib!

When i use useCookies i cant pass options for parsing cookies.
For example i need disable default cookie parsing (i save in cookies big number like 1691590724652002030230)

I think we need could pass doNotParse option in

const [allCookies, setCookies] = useState(() => cookies.getAll());

@eXon
Copy link
Collaborator

eXon commented Sep 6, 2023

It is currently unsupported but I will gladly review a PR if you would like to add the option.

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

2 participants