-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
workbox database support #1060
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to integrate into an existing
workbox
database?When using service workers -
workbox
(PWA solution for front-end) creates a database where failed HTTP requests are stored. It looks like this:also, see that key path 'id' is used.
So, I am trying to connect to this database and retrieve all keys and values:
and
The
localforage
is able to get the keys just fine and loop over them. But the value is retrieved asnull
. No errors are thrown.Furthermore, out of curiosity I tried inserting my own data into the store (not because I actually plan on using this):
and the exception is thrown:
So my question is - is the
workbox
database not compatible withlocalForage
? What exactly makes it incompatible and what solutions (maybe otherindexeddb
wrappers) would allow me to read the data from it?My aim at this point is just reading the data so it would be ideal if
localforage
could do at least just that..The text was updated successfully, but these errors were encountered: