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
The update stream holds the the current todo-list :Todo[] and the last change with full info :Todo (whether creation, update or deletion). This code block extracts this change in a categorized way. My question is whether I'm doing it right or there is a better way to handle a situation like
POST triggered an update. Get the events from update initiated by POST and skip the ones triggered by PUT and DELETE.
The text was updated successfully, but these errors were encountered:
Good day!
Please take a look at this. It is an implementation of a reference TodoMVC app.
The solution works as advertised. Nevertheless, I feel I'm missing something about joining streams.
update
functionAt first I though that would work:
but had to settle for a solution with node-like running state:
Is my reasoning flawed?
when
joinsThe
update
stream holds the the current todo-list:Todo[]
and the last change with full info:Todo
(whether creation, update or deletion). This code block extracts this change in a categorized way. My question is whether I'm doing it right or there is a better way to handle a situation likeThe text was updated successfully, but these errors were encountered: