Closed wyqydsyq closed 7 years ago
So I just checked the Cycle Universal run
package vs. the old @cycle/xstream-run
this is built against and realized that it has a slightly different API now - the old default export constructor/factory type thing has been replaced with run()
itself as the default export, and there's now another setup
method to do that old one, padding this setup
method instead of the default export of @cycle/run
to my rerunner()
call fixed this.
Closing this issue as it's not actually a bug, will submit a PR to update the documentation with examples that work with Cycle Universal :)
Using
cycle-restart
with the latest@cycle/run
(3.0.0
) I get the following error upon initial load:Having a quick peek into the relevant source, I'm not sure how this code is even intended to work; the call to
Cycle()
returns the dispose method, but the code seems to be expecting an object withsources
,sinks
, andrun
properties:As you can see in this screenshot from the debugger, when looping over the Time driver everything seems to be
undefined
: