You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there -- I'd generally handle this in the Middleware layer. Overall, Isolates are very restricted on what data can be sent back and forth. Unfortunately, Streams are one of those things that cannot be passed back and forth, and the Store contains a Stream. Therefore, it isn't possible to pass the Store itself from one Isolate to another.
Therefore, I'd recommend creating a Middleware that synced the Contacts on a separate isolate, and returns those contacts to the middleware when it's finished syncing. Then, the middleware can dispatch the results.
Hi,
I'm creating a chat app and would want to sync contacts on a different thread, than the main thread - using an isolate probably.
How can I connect to flutter store via an isolate?
The text was updated successfully, but these errors were encountered: