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
... Not sure about other code flows but I can see this being a problem throughout the backbone event system.
A few solutions off the top of my head:
Silence events when using the brainstem-redux API? This does not seem ideal since it seems to be side-stepping the issue
Stateful handling of events (e.g. do not handle events after REQUEST_COLLECTION until SYNC_COLLECTION). This might not work if there is a server error?
Throttle event handler. This only works if the event handler always does the same thing (regardless of event type) -- always syncs the data between storage manager and the store.
The text was updated successfully, but these errors were encountered:
I think there are some possible optimizations to avoid clobbering the store.
The fetching flow emits a bunch of events in our store. The logged output looks similar to:
A few solutions off the top of my head:
Silence events when using the brainstem-redux API?This does not seem ideal since it seems to be side-stepping the issueREQUEST_COLLECTION
untilSYNC_COLLECTION
). This might not work if there is a server error?The text was updated successfully, but these errors were encountered: