New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useIndexedDb / useIDB #230
Comments
This is definitely good to have. However, I am not that familiar with IndexedDB, PR welcome. Another option is that we could have a wrapper for https://dexie.org/ |
I found a local DB comparison (localStorage, localForage, indexDB, Dexie, LokiJS etc.) Based on this comparison, a better choice would be LokiJS. Dexie is to slowly... IMHO |
LokiJS looks really decent, i have never heard of it before, thanks for the share! |
I am working to make a composition wrapper around idb-keyval. Which is a key value store api on top of Indexed DB. It will have a similar type signature to useStorageAsync This won't add full support for Indexed DB. However it will give you typed keys and values without the need of a serializer, adds web worker support, and lets you use more storage space when compared to using the local storage variant. The caveat being it won't reactively update if another source updates the KV store. There isn't an event that fires when the Indexed DB is changed, unlike the Storage Api's (https://github.com/vueuse/vueuse/blob/main/packages/core/useStorage/index.ts#L164). Can I open a PR adding it to |
Co-authored-by: Jess Sachs <jess.sachs@pathai.com> closes #230
Any plans for adding a IndexedDb utility ?
The text was updated successfully, but these errors were encountered: