cycle-router5
cycle-router5 copied to clipboard
A router driver for Cycle.js, wrapping the router5 library
Hi Nathan, router5 1.0.0 has been released and I think it will be easier to integrate with cycle-js, if you are still working on it. To summarise what is new...
How to implement?
Direct browser access to `/about` results in `defaultRoute` applied. Only JS navigation works. So router basically is not aware that it's alredy "other" page and navigation event had to be...
I found one example which uses this library: https://github.com/basham/cycle-demo/blob/router5/src/main.js There is such search of route handler in the plain `Array`: ``` js function model(actions) { return actions.transition$.map(({toState, fromState}) => {...