Lack of IndexDB support forces usage of Vuex #2067
Unanswered
teckel12
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.
-
I'd like to switch to using Pinia for new projects, but problems with using IndexDB prevent me from switching.
To be clear, I can use localForage along with a custom IndexDB plugin to get Pinia to use IndexDB. However, the Pinia store values are returned before connecting with IndexDB, so if accessing values on mount, it always shows the initial values, not those in the IndexDB store (unless the code is run a bit later, like inside a timer event).
Until Pinia can be used with IndexDB as Vuex does, I'm forced to keep using Vuex, and it doesn't seem like Pinia is really yet a replacement for Vuex. Any thought about supporting IndexDB?
Below is the closest I can get, but still problematic with the above mentioned issue:
Beta Was this translation helpful? Give feedback.
All reactions