visionmedia / page.js

Micro client-side router inspired by the Express router
http://visionmedia.github.com/page.js
7.68k stars 688 forks source link

Multible callbacks on single route #359

Open ahedderich opened 8 years ago

ahedderich commented 8 years ago

Is it somehow possible to register two callbacks for a route or get and set the current callback for it? My problem is to register a route at the start but dynamically change it's behavior later.

gawin commented 8 years ago

+1 Having the same issue, would love to have the ability to register multiple callbacks.

My use case is that I'm using a third party router based on Page.js. That router uses the page('*', routerCallback), now if I register my callback the original router stops working.

matthewp commented 6 years ago

I think the solution here would be to unregister a route.