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
dispatch-sync can't be called from within an event handler - only an async dispatch can be "called".
Warn if this is ever attempted.
Why is it a problem? Well the the first event handler is given a snapshot of the db as a parameter. And whatever this first event handler returns will be put back into app-db when it finishes. So any changes made by an intermediate call to dispatch-sync will be lost.
So the problem sequence would be:
first event handler called with db snapshot
dispatch-sync called, making changes to app-db
first event handler finishes, and its returned db is written into app-db
Ie. the changes in step 2 are lost. (no longer in app-db)
The text was updated successfully, but these errors were encountered:
dispatch-sync
can't be called from within an event handler - only an asyncdispatch
can be "called".Warn if this is ever attempted.
Why is it a problem? Well the the first event handler is given a snapshot of the db as a parameter. And whatever this first event handler returns will be put back into app-db when it finishes. So any changes made by an intermediate call to
dispatch-sync
will be lost.So the problem sequence would be:
Ie. the changes in step 2 are lost. (no longer in app-db)
The text was updated successfully, but these errors were encountered: