Skip to content
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

Support IndexedDB as storage option #110

Closed
3 tasks done
TomDeSmet opened this issue Aug 24, 2022 · 1 comment
Closed
3 tasks done

Support IndexedDB as storage option #110

TomDeSmet opened this issue Aug 24, 2022 · 1 comment
Labels
✨ enhancement New feature or request ❌ wontfix This will not be worked on

Comments

@TomDeSmet
Copy link

Clear and concise description of the problem

I don't think IndexedDB is supported now as I can't add it as the storage option in the plugin config?
I'm using this plugin to store some larger data sets inside a hybrid iOS built app (using Ionic/Capacitor), that are to small to store in SQLlite, but need to be consistently available.
As LocalStorage can be cleared by the browser anytime and IndexedDB doesn't suffer that fate (so I've read) and is more targeted towards larger datasets, it would be nice to be able to choose that one.

Suggested solution

Add IndexedDB as a storage option.

Alternative

No response

Additional context

No response

Validations

@TomDeSmet TomDeSmet added the ✨ enhancement New feature or request label Aug 24, 2022
@prazdevs
Copy link
Owner

prazdevs commented Sep 7, 2022

As talked about in #17 , the issue lies within how pinia's $subscribe works synchronously. There is no way (or none that I am aware of) to have a consistent async persistence API that wont involve desync or potential race conditions.

This can not be considered at the moment, but will be if Pinia ever allows async behaviour (which is restricted to actions for now, which you can look into to persist data asynchronously).

😞

@prazdevs prazdevs closed this as completed Sep 7, 2022
@prazdevs prazdevs added the ❌ wontfix This will not be worked on label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request ❌ wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants