How to use StorageManager in Angular with dexie to prevent accidentally deletion of indexeddb

38 views Asked by At

In my Angular project I have used dexie to handle indexeddb. But somehow all data gets deleted accidentally (you can say indexeddb crash). I want to use StorageManger in Angular with dexie so that I can prevent accidentally deletion.

https://dexie.org/docs/StorageManager

I tried to use the example from above but seems like it is not working. As there is no properties like storage or storage.persisted or any function with navigator.

Or any other way you guys can suggest to prevent this behaviour.

0

There are 0 answers