cyclejs-community / cyclic-router

Router Driver built for Cycle.js
MIT License
109 stars 25 forks source link

The parameter route matches the general route. #208

Closed siwei-lu closed 6 years ago

siwei-lu commented 6 years ago
const match$ = sources.router.define({
  '/main': MainComponent,
  '/:id': id => sources => OtherComponent({ ...sources, id: xs.of(id) })
});

It will return OtherComponent's sinks when URL is '/main'.

TylorS commented 6 years ago

This is likely a bug in switch-path