Skip to content

Commit ca09e36

Browse files
authored
Merge pull request #190 from TimurKiyivinski/fix-history-documentation
docs(README): Update history library breaking changes
2 parents 1d3aaa7 + e8a725c commit ca09e36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import xs from 'xstream';
3838
import Cycle from '@cycle/xstream-run';
3939
import {makeDOMDriver} from '@cycle/dom';
4040
import {makeRouterDriver} from 'cyclic-router';
41-
import {createHistory} from 'history';
41+
import {createBrowserHistory} from 'history';
4242
import switchPath from 'switch-path'; // Required in v3, not required in v2 or below
4343

4444
function main(sources) {
@@ -61,7 +61,7 @@ function main(sources) {
6161

6262
Cycle.run(main, {
6363
DOM: makeDOMDriver('#app'),
64-
router: makeRouterDriver(createHistory(), switchPath) // v3
64+
router: makeRouterDriver(createBrowserHistory(), switchPath) // v3
6565
// router: makeRouterDriver(createHistory()) // <= v2
6666
});
6767
```

0 commit comments

Comments
 (0)