import Cycle from '@cycle/core';
import {makeDOMDriver} from '@cycle/dom';

import slides from './src/slides';

const drivers = {
  DOM: makeDOMDriver('.app')
};

if (module.hot) module.hot.accept();

Cycle.run(slides, drivers);

import Cycle from '@cycle/core';
import {makeDOMDriver} from '@cycle/dom';

import slides from './src/slides';

const drivers = {
  DOM: makeDOMDriver('.app')
};

const [sinks, sources] = Cycle.run(slides, drivers);

if (module.hot) {
  module.hot.accept();

  module.hot.dispose(() => {
    sinks.dispose();
    sources.dispose();
  });
}


Fix hotloading by correctly disposing of the Cycle app
Fix hotloading by correctly disposing of the Cycle app
