You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Additionally, using a computed as defaults results in a warning from vue when trying to set the data: Write operation failed: computed value is readonly
Describe the bug
The
defaults
argument ofuseStore
is typed asMaybeRefOrGetter
:However the value is not correctly unwrapped in line 148:
If using a getter function
() => T
asdefaults
,data
will be:RemovableRef<() => T>
instead ofRemovableRef<T>
.Reproduction
https://stackblitz.com/edit/vitejs-vite-6bznlt?file=src%2FApp.vue
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: