cyclejs-community / cyclic-router

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

Can't match path correctly ! #210

Closed siwei-lu closed 5 years ago

siwei-lu commented 6 years ago

I have a router defined as

const match$ = sources.router.define({
  '/a': AComponent,
  '/aa': AAComponent,
  '/ca': CAComponent
}

This stream will be {path: null, value: null} when path is /aa. But it works when path is /ca.

jvanbruegge commented 6 years ago

This is most likely a bug in switch-path