Please update docs.
https://github.com/ionic-team/ionic-storage?tab=readme-ov-file#adding-driver-to-configuration
Where do you get Drivers? In @ionic/storage-angular (v4.0.0) types it's just type any. There is not export for Drivers enum.
Workaround: Use string names like 'indexeddb' and 'localstorage'.
Update: Names does not work on browser (without Cordova sqlite).
IonicStorageModule.forRoot({
driverOrder: [CordovaSqLiteDriver._driver, 'indexeddb', 'localstorage'],
})
It only works if I completly remove driveOrder. I wonder what is value of Drivers.IndexedDB?
This does not work:
IonicStorageModule.forRoot({
driverOrder: ['indexeddb', 'localstorage'],
})
Doc comment: Possible default driverOrder options are: ['indexeddb', 'localstorage'] and the default is that exact ordering. Lie? Because IonicStorageModule.forRoot() works.
Please update docs.
https://github.com/ionic-team/ionic-storage?tab=readme-ov-file#adding-driver-to-configuration
Where do you get
Drivers? In@ionic/storage-angular(v4.0.0) types it's just typeany. There is not export forDriversenum.Workaround: Use string names like'indexeddb'and'localstorage'.Update: Names does not work on browser (without Cordova sqlite).
It only works if I completly remove driveOrder. I wonder what is value of
Drivers.IndexedDB?This does not work:
Doc comment: Possible default driverOrder options are: ['indexeddb', 'localstorage'] and the default is that exact ordering. Lie? Because
IonicStorageModule.forRoot()works.