How to access localForage instance from the store?

AndrewBogdanovTSS
69
AndrewBogdanovTSS
commented 2 years 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 2 years 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 2 years 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
lifenautjoe
0
lifenautjoe
commented 4 months ago

Crap. I can confirm this is the case. @besnikh

0
Informations
QuestionUnresolved
#c2 - Created 2 years ago