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 bug cyclejs/todomvc-cycle#35 in the TODO-MVC example of Cycles.js is introduced by [email protected] and is still present in the current latest release [email protected]. As far as I can tell, the project function of map (returned by amendStateWithChildren(sources.DOM)) in TaskList/index.js#L66 is called twice for each event. You can check this assumption by adding a debug statement in line 66
Removing that (in model()) fixes the issue, because then the debug('state') will also emit. The double emission is expected, it's app logic. The first emission is due to the fold seed, the second is due to changeRouteReducer$'s startWith.
Still, we need to fix remember() and MemoryStream.
The bug cyclejs/todomvc-cycle#35 in the TODO-MVC example of Cycles.js is introduced by
[email protected]
and is still present in the current latest release[email protected]
. As far as I can tell, the project function of map (returned byamendStateWithChildren(sources.DOM)
) in TaskList/index.js#L66 is called twice for each event. You can check this assumption by adding a debug statement in line 66and a log statement between line 14 and 15:
If you run the app you see that each time you add an item to the list the console logs
or something similar. Like I said: For each event of
state$
, the project function passed tostate$.map
is called twice.The text was updated successfully, but these errors were encountered: