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

Is there a way to know if Hive was already initialized on device? #23

Closed
Nipodemos opened this issue Aug 20, 2019 · 2 comments
Closed

Comments

@Nipodemos
Copy link

Hello,
i've red the examples and docs, and it seems that you alwals initialize hive when app starts.
Is there a way to know if it were already initialized?

Or it is not necessary?

@simc
Copy link
Member

simc commented Aug 20, 2019

No there isn't currently. If you call Hive.init() multiple times, nothing happens.

Do you need to know if it has been initialized?

@Nipodemos
Copy link
Author

No no, i was just curios if calling init multiple times could be a bad thing. I'm glad that it isn't
thank you for answer!

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

2 participants