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
Should calls to Store.dispatch be thread confined? Particularly to the main/ui thread of the platform? Dealing with multi-threaded updates to State can get hairy
The text was updated successfully, but these errors were encountered:
Yes, calls to dispatch should be thread confined. In particular, the reducers need to be executed on the same thread. In my experience the main thread has been used and have not ran into any problems, but an optimal solution may be to do all middleware/reducers off the mainthread, and only updated the UI when subscibers are called.
Yes, enforcing a single/same thread within the library would be good to prevent race conditions. This could be done inside of the dispatch function in createStore
Should calls to Store.dispatch be thread confined? Particularly to the main/ui thread of the platform? Dealing with multi-threaded updates to State can get hairy
The text was updated successfully, but these errors were encountered: