hive icon indicating copy to clipboard operation
hive copied to clipboard

Fail to initialize Hive 4.0.0 for Flutter Web?

Open Terranic opened this issue 1 year ago • 2 comments

Hi all,

what is the new way to initialize Hive 4.0.0 for Flutter web?

final dir = await getApplicationDocumentsDirectory(); Hive.defaultDirectory = dir.path;

fails because Path_Provider is not available on browsers. There does not seem any other init method. Does anyone know?

Terranic avatar Dec 23 '23 13:12 Terranic

I think it states either in Hive or Isar that version 4 web doesn't persist data so it is only held in the browser session and then lost.

978bobs avatar Jan 02 '24 12:01 978bobs