How to access global / inject functions in pinia store? #1552
Unanswered
ezur1
asked this question in
Help and Questions
Replies: 1 comment
-
SOLVED by setting the injected function on the window like so => |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I have injected functions that i could use in vuex stroe but i cannot use them in pinia store..




using nuxt 2
for example:
injected some functions
then in vuex store i could have access them with window.$nuxt or with Vue.prototype.
for some reason window.$nuxt is undefined..
nuxt.config: im trying to reach xhr-functions.js at app-boot.js
app-boot.js:
main: asyncDispatchXHR not accessible
Please help
thanks!
Beta Was this translation helpful? Give feedback.
All reactions