-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: can't access property "size", store._customProperties is undefined #3004
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
base: v3
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for pinia-official canceled.
|
do you have a repro? |
I can reproduce it on https://www.jumbo.com but I can try create a separate one if really needed |
Yes, please, a repro must be minimal |
Here it is the repro: https://stackblitz.com/edit/nuxt-pinia-customproperties-undefined?file=app.vue |
thanks! That's quite weird, I suppose it goes away if you use the nuxt devtools? |
Here you see the const store: Store<Id, S, G, A> = reactive(
__DEV__ || (__USE_DEVTOOLS__ && IS_CLIENT)
? assign(
{
_hmrPayload,
_customProperties: markRaw(new Set<string>()), // devtools custom properties
},
partialStore
// must be added later
// setupStore
)
: partialStore
) as unknown as Store<Id, S, G, A> I only wanted to get rid of the error, not sure what the best best appoach is to fix it since the app is running production mode. |
When using Pinia module in the Vue dev tools in Firefox (Zen browser) and I select a store the following error occurs, it is fixed by checking if
store._customProperties
exists.When I set a breakpoint and set
store._customProperties
to a new Map() it seems to work.