Updating data in the isolate #227
Answered
by
frank06
andreystavitsky
asked this question in
Q&A
|
For example, I have an FCM onBackgroundMessage function that updates data in the repository, and I have a watcher (watchAll) on my app screen. Is it possible to update data in the background and reflect that update on the screen? What is the correct setup for that situation? |
Answered by
frank06
May 22, 2023
Replies: 1 comment
|
Sadly it's not possible to access FD in an isolate because at the moment it's backed by Hive and this is a Hive limitation. Should be possible the day we support other storage backends. In the meantime maybe passing data through shared preferences or similar could work |
0 replies
Answer selected by
andreystavitsky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sadly it's not possible to access FD in an isolate because at the moment it's backed by Hive and this is a Hive limitation. Should be possible the day we support other storage backends. In the meantime maybe passing data through shared preferences or similar could work