ui
ui copied to clipboard
UToggle is not getting rerendered when v-model is getting from pinia store
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: [email protected]
- Builder: -
- User Config: extends, devtools, colorMode, modules, piniaPersistedstate, eslint
- Runtime Modules: @nuxt/[email protected], @nuxt/[email protected], @nuxtjs/[email protected], @pinia/[email protected], @pinia-plugin-persistedstate/[email protected]
- 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
This issue is stale because it has been open for 30 days with no activity.