mithril stream .map does not trigger next stream value #2643
Labels
Area: Stream
For anything dealing with Mithril streams
Type: Bug
For bugs and any other unexpected breakage
Mithril version:
2.0.4
Browser and OS:
Chrome on Mac OSX
Project:
Meiosis
Steps to Reproduce
update
streamstates
stream byscan
ning the `update streamstates.map(state => effect(state)
whereeffect
triggers anotherupdate
Expected Behavior
effect
function to be called again{ route: 'Home', routeChanged: true, data: [] }
{ route: 'Home', routeChanged: false, data: [], loading: true }
{ route: 'Home', routeChanged: false, data: [ 'duck', 'quack' ], loading: false }
Current Behavior
effect
function is not called again{ route: 'Home', routeChanged: true, data: [] }
{ route: 'Home', routeChanged: false, data: [], loading: true }
effect
function should have been called again, but it is not.Context
This is to set up the Meiosis pattern with Effects.
Note: This commit fixes the same issue in Meiosis-Setup's
simple-stream
.The text was updated successfully, but these errors were encountered: