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

UToggle is not getting rerendered when v-model is getting from pinia store #1792

Open
Tarabass opened this issue May 15, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Tarabass
Copy link

Tarabass commented May 15, 2024

Environment

  • Operating System: Windows_NT
  • Node Version: v18.18.2
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: npm@9.8.1
  • Builder: -
  • User Config: extends, devtools, colorMode, modules, piniaPersistedstate, eslint
  • Runtime Modules: @nuxt/ui@2.16.0, @nuxt/eslint@0.3.12, @nuxtjs/device@3.1.1, @pinia/nuxt@0.5.1, @pinia-plugin-persistedstate/nuxt@1.2.0
  • Build Modules: -

Version

v2.16.0

Reproduction

https://stackblitz.com/edit/github-gaqntm?file=app.vue

Description

I use a pinia store to save settings and persist those settings using pinia-plugin-persistedstate and localStorage as storage. Everything works great, URadioGroup and URadio are correctly updated when I refresh the page. But UToggle isn't, although the value of modelValue is correct when I print it on screen.

  • UToggle is not updated when v-model is set from pinia store
  • UToggle is correctly set when v-model is from local variable

Additional context

No response

Logs

No response

@Tarabass Tarabass added the bug Something isn't working label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant