Skip to content

Support for multiple views #540

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

Closed
eli1stark opened this issue Jun 2, 2023 · 2 comments
Closed

Support for multiple views #540

eli1stark opened this issue Jun 2, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@eli1stark
Copy link

eli1stark commented Jun 2, 2023

Since Flutter 3.10, the Flutter team started to prepare support for multiple views and starts to deprecate single view APIs, it will be common for Flutter apps to support this as well in the future. At the moment ObjectBox allows only one view to interact with the database image, when 2nd view will try to access the database error will be thrown. This way if the app is using ObjectBox, it is locked to a single view and can't support multiple views.

Having multiple views is common nowadays, for example when you open app inside another app via dynamic link while you have main view running.

My proposal is to add ability to modify database from multiple views.

Additional information:

  1. https://docs.flutter.dev/release/breaking-changes/window-singleton
  2. https://www.youtube.com/watch?v=vtB-teu57vw
@eli1stark eli1stark added the enhancement New feature or request label Jun 2, 2023
@greenrobot-team
Copy link
Member

Thanks for the heads-up! I have not looked at this deeply, but from a first impression is this possibly a duplicate of #436 (comment)?

@eli1stark
Copy link
Author

Yes, it looks like it's a duplicate

@greenrobot-team greenrobot-team added the duplicate This issue or pull request already exists label Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants