isar / hive

Lightweight and blazing fast key-value database written in pure Dart.
Apache License 2.0
4.03k stars 402 forks source link

Data not persisting for IndexedDB - web (chrome) #896

Open Alecia1997 opened 2 years ago

Alecia1997 commented 2 years ago

Data not persisting for IndexedDB - web (chrome) Is persistent storage being requested when using the Hive package to save data for web?

Has anyone else encountered inconsistency with data stored in IndexedDB for chrome?

Any feedback will be appreciated. Thank you!

Theunodb commented 2 years ago

Also experiencing this issue. It works fine when running on a device (iOS / Android) and in firefox and safari, but when running in chrome the data gets cleared.

LeandroNovak commented 2 years ago

The same thing is happening here when using chrome.

v0fbu1vm commented 2 years ago

So is anyone doing something about this or what?

v-kananu commented 2 years ago

I'm experiencing the same issue. Any solutions yet, please?

sbhartii commented 2 years ago

I am facing couple of issues while using Hive with Flutter Web (although it works fine with Android and Linux Desktop)

  1. Hive.boxExists waits forever when boxName doesn't exist.
  2. Hive.deleteBoxFromDisk waits forever when box exists and is open.

Flutter : 2.10.4 Dart : 2.16.2 Hive : ^2.1.0 Chrome : 100.0.4896.75 / Firefox 99.0 (64-bit) Platform OS : Ubuntu 20.04

WidarVauth commented 1 year ago

you can use idb shim library , for persistant client data , use indexdedDB , hive may have performance issues according to my research