You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a use case that our app would benefit from, but I also think it could be useful as an option for the plugin.
The app I work on uses WebSQL and IDB in a weird way*, which makes it very difficult to use this plugin reliably, because [email protected] has a precedence order of IDB, WebSQL and localStorage when it tries to store something. The plugin works the very first time but once we try to store the choice, any attempts to navigate via launchnavigator.navigate does not work!
My theory is that it tries to use our borked setups of IDB and WebSQL and returns nothing when navigate gets called.
In this case, it would be very beneficial to default localforage to just use localStorage and ignore other options. I tried this in a forked version and that seemed to work for my use case! 🎉
I also noticed that localforage takes in an options object into localforage which lets you specify a driver of your choice, like so:
dpa99c
changed the title
Ability to provide different storage driver as an option to launchnavigator.navigate
[FEATUREAbility to provide different storage driver as an option to launchnavigator.navigateNov 23, 2019
dpa99c
changed the title
[FEATUREAbility to provide different storage driver as an option to launchnavigator.navigate
[FEATURE] Ability to provide different storage driver as an option to launchnavigator.navigateNov 23, 2019
I'm submitting a ...
This is a use case that our app would benefit from, but I also think it could be useful as an
option
for the plugin.The app I work on uses WebSQL and IDB in a weird way*, which makes it very difficult to use this plugin reliably, because
[email protected]
has a precedence order ofIDB
,WebSQL
andlocalStorage
when it tries to store something. The plugin works the very first time but once we try to store the choice, any attempts to navigate vialaunchnavigator.navigate
does not work!My theory is that it tries to use our borked setups of IDB and WebSQL and returns nothing when
navigate
gets called.In this case, it would be very beneficial to default
localforage
to just uselocalStorage
and ignore other options. I tried this in a forked version and that seemed to work for my use case! 🎉I also noticed that
localforage
takes in anoptions
object intolocalforage
which lets you specify a driver of your choice, like so:I wonder if it be beneficial to expose this an option to
launchnavigator.navigate
, so it is more configurable!Thanks for the all the hard work on this plugin!
The text was updated successfully, but these errors were encountered: