Releases: Widdershin/cycle-restart
Releases · Widdershin/cycle-restart
Support Cycle Unified
Breaking changes:
You must now pass setup
as the first argument to both restart
and rerunner
.
import {setup} from '@cycle/run';
import {makeDOMDriver} from '@cycle/dom';
import {makeHTTPDriver} from '@cycle/http';
import {rerunner, restartable} from 'cycle-restart';
import app from './src/app';
const makeDrivers = () => ({
DOM: restartable(makeDOMDriver('.app'), {pauseSinksWhileReplaying: false}),
HTTP: restartable(makeHTTPDriver())
});
let rerun = rerunner(setup, makeDrivers);
rerun(app);
if (module.hot) {
module.hot.accept('./src/app', () => {
const newApp = require('./src/app').default;
rerun(newApp);
});
}
Support Cycle Diversity
v0.1.0 0.1.0