How to access localForage instance from the store?

AndrewBogdanovTSS
69
AndrewBogdanovTSS
commented a year ago

I want to have access to localForage instance from the Nuxt store, but in provided docs I only found examples related to accessing the instance via this.$localForage in components, but how can it be accessed in store?

0
besnikh
0
besnikh
commented a year ago

Did you find any solution ?
I am facing same problem here… I can access it from components but not from Store

0
AndrewBogdanovTSS
69
AndrewBogdanovTSS
commented a year ago

@besnikh no I didn't, it looks like the creator of this plugin just forgot to implement such functionality. He only exposed it on the Vue instance that is available only inside components, but it wasn't added to this.app or somehow injected into the context object. I hope that I just am missing smth, but if I'm right - that's insane

0
Informations
QuestionUnresolved
#c2 - Created a year ago