localForage support
See original GitHub issueHi Arnav,
first of all, thank you for releasing vuex-persist.
You mention on your readme that localforage is supported.
However, new VuexPersistance(storage: localforage})
doesn’t work - it surfaces an error related to localforage being asynchronous (VuexPersistance is trying to JSON decode a JS promise).
Any tip how to make this work?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:13 (4 by maintainers)
Top Results From Across the Web
localForage - GitHub
localForage supports storing all native JS objects that can be serialized to JSON, as well as ArrayBuffers, Blobs, and TypedArrays. Check the API...
Read more >localForage - GitHub Pages
localForage includes a localStorage-backed fallback store for browsers with no IndexedDB or WebSQL support. Asynchronous storage is available in the current ...
Read more >How to Use localForage for Easy Async Browser Storage
localForage is a convenient wrapper library that smoothes the rough landscape of browser databases. Of which there are several: localStorage ...
Read more >localforage - npm
Start using localforage in your project by running `npm i localforage`. There are 1711 other projects in the npm registry using localforage.
Read more >LocalForage - Simplified JavaScript Jargon
localForage supports storing all native JS objects that can be serialized to JSON, as well as ArrayBuffers, Blobs, and TypedArrays. Check the API...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, will have to make some changes for that. Let me add this to my todo.
@TimonPost @to-svarghese I had the same symptom rn. this helped: https://github.com/championswimmer/vuex-persist/issues/117#issuecomment-493906644
example:
This should probably set as default value when
VuexPersist
detected thatstorage
is localForage. @championswimmer