How to use the this.$nuxt.$pinia #2227
Unanswered
mahanteshaCloudMPower
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
access Store
Steps to reproduce the bug
install: install(app) { setActivePinia(pinia); if (!isVue2) { pinia._a = app; app.provide(piniaSymbol, pinia); app.config.globalProperties.$pinia = pinia; if (USE_DEVTOOLS) { registerPiniaDevtools(app, pinia); } toBeInstalled.forEach((plugin) => {…}
state: RefImpl {__v_isShallow: false, dep: undefined, __v_isRef: true, _rawValue: {…}, _value: Proxy(Object)}
use: ƒ use(plugin)
_a: {_uid: 1, _component: {…}, _props: null, _container: div#__nuxt, _context: {…}, …}
_e:EffectScope {detached: true, _active: true, effects: Array(0), cleanups: Array(0), parent: undefined, …}
_p: [ƒ]
_s: Map(1) {'testStore' => Proxy(Object)}
__v_skip: true
[[Prototype]]: Object
Expected behavior
Am using nuxt3.5 and pinia stores above the example piece of code am getting
above the Object when
this.$nuxt.$pinia
Actual behavior
Problem is am how to get the store
Please explain above the Object and how to access the store and how to store the data into the store
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions