Open OmgImAlexis opened 7 years ago
Are you interested in opening a PR with this work?
@jbielick sure, I just need someone that's an admin here to tell me which name to use for the debug name.
It looks like the other ones just remove the koa-
prefix and use what's remaining as the name, should we use router
?
@jbielick why do you ignore my PR? :(
@YanLobat please don't hijack other issues. If you need someone's attention just tag them and wait.
Without the
_name
field being set on the exported middleware Koa seems to use the exported generator/function's name. Sincekoa-router
doesn't set this; Koa defaults back todispatch
for the middleware's name. Debugging docs.I'd suggest either using
koa-router
or the name/url of the route if possible.For example notice the 5
dispatch
statements. That's caused by this.