hive
hive copied to clipboard
Fail to initialize Hive 4.0.0 for Flutter Web?
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?
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.