-
-
Notifications
You must be signed in to change notification settings - Fork 928
Open
Labels
Area: StreamFor anything dealing with Mithril streamsFor anything dealing with Mithril streamsType: BugFor bugs and any other unexpected breakageFor bugs and any other unexpected breakage
Description
Mithril version:
2.0.4
Browser and OS:
Chrome on Mac OSX
Project:
Steps to Reproduce
- Create an
updatestream - Create a
statesstream byscanning the `update stream - Call
states.map(state => effect(state)whereeffecttriggers anotherupdate
Expected Behavior
- Expect the
effectfunction to be called again - Here is a flems showing the expected behavior
- Notice the output on the console:
{ route: 'Home', routeChanged: true, data: [] }{ route: 'Home', routeChanged: false, data: [], loading: true }{ route: 'Home', routeChanged: false, data: [ 'duck', 'quack' ], loading: false }
Current Behavior
- The
effectfunction is not called again - Here is a flems showing the current behavior
- Notice the output on the console:
{ route: 'Home', routeChanged: true, data: [] }{ route: 'Home', routeChanged: false, data: [], loading: true }
- The third state is missing because the
effectfunction 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.
Metadata
Metadata
Assignees
Labels
Area: StreamFor anything dealing with Mithril streamsFor anything dealing with Mithril streamsType: BugFor bugs and any other unexpected breakageFor bugs and any other unexpected breakage
Type
Projects
Status
Needs triage