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

Support passing options to useCookies? #448

Closed
Vinnl opened this issue Jan 16, 2024 · 1 comment
Closed

Support passing options to useCookies? #448

Vinnl opened this issue Jan 16, 2024 · 1 comment

Comments

@Vinnl
Copy link

Vinnl commented Jan 16, 2024

As far as I can see, there isn't currently a way to pass options (specifically, doNotParse) to the getAll method that's called inside useCookies. Would it be possible to add a second argument to useCookies that will be passed on as the second argument to getAll?

@eXon
Copy link
Collaborator

eXon commented Feb 22, 2024

Hi @Vinnl ,

Since those options are not very often used, they are not exposed but they very well could be. Feel free to open a PR with a proposition.

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