-
Notifications
You must be signed in to change notification settings - Fork 122
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
Issue while using isolates #696
Comments
|
Each Dart isolate has its own global fields, they do not share state on the Dart level. However, as ObjectBox runs on the native or process level (so one native instance shared across all isolates), instead of creating a new Store in another isolate your code should instead attach to the open native store. Note: I labeled this issue with "more info required" so it will auto-close in a few days if there are no follow-up comments. |
can I get an example ? |
Sorry, I can't really help without an error message or code example. But this error message does not sound like it is related to ObjectBox. Note: I labeled this issue with "more info required" so it will auto-close in a few days if there are no follow-up comments. |
I added notes about this to the Getting Started - Create a Store sections for Flutter and Dart. |
I’ve implemented a singleton pattern for the ObjectBox class in my Flutter project, and it works correctly when accessed normally. However, when I started implementing isolates, I'm encountering a LateInitializationError.
is there any solution to fix this
The text was updated successfully, but these errors were encountered: