Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to initialize Hive 4.0.0 for Flutter Web? #1265

Open
Terranic opened this issue Dec 23, 2023 · 2 comments
Open

Fail to initialize Hive 4.0.0 for Flutter Web? #1265

Terranic opened this issue Dec 23, 2023 · 2 comments

Comments

@Terranic
Copy link

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?

@978bobs
Copy link

978bobs commented Jan 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@978bobs @Terranic and others