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

Decode function for useCookie called for every cookie present #27246

Open
Eazash opened this issue May 16, 2024 · 0 comments
Open

Decode function for useCookie called for every cookie present #27246

Eazash opened this issue May 16, 2024 · 0 comments

Comments

@Eazash
Copy link

Eazash commented May 16, 2024

Environment

  • Operating System: Darwin
  • Node Version: v20.10.0
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: pnpm@9.0.6
  • Builder: -
  • User Config: devtools
  • Runtime Modules: -
  • Build Modules: -

Reproduction

  1. Call useCookie more than once with unique cookie names.
  2. Add a decode function to at least one of the calls

Describe the bug

The decode function is called with the values for all cookies present, while the expected behaviour is for the function to be called with the value for the cookie name the hook was registered with.

image Reproduction:

Additional context

No response

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants