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.