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
currently getting undefined is not an object (evaluating 'pinia._s.has'),TypeError, useStore only on IOS and MAC devices
functionuseStore(pinia,hot){consthasContext=hasInjectionContext();pinia=// in test mode, ignore the argument provided as we can always retrieve a// pinia instance with getActivePinia()pinia||(hasContext ? inject(piniaSymbol,null) : null);if(pinia)setActivePinia(pinia);pinia=activePinia;**if(!pinia._s.has(id)){**if(isSetupStore){createSetupStore(id,setup,options,pinia);}else{createOptionsStore(id,options,pinia);}}
Expected behavior
should not throw error
Actual behavior
currently throwing error undefined is not an object (evaluating 'pinia._s.has'),TypeError, useStore
This discussion was converted from issue #2544 on January 04, 2024 06:49.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Reproduction
production
Steps to reproduce the bug
Vue 3.3.6
Pinia 2.1.7
main.ts file
detail.vue
detailPageStore.ts
currently getting undefined is not an object (evaluating 'pinia._s.has'),TypeError, useStore only on IOS and MAC devices
Expected behavior
should not throw error
Actual behavior
currently throwing error undefined is not an object (evaluating 'pinia._s.has'),TypeError, useStore
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions