Closed benlesh closed 7 years ago
oops, looks like I accidentally have some cruft from the prettier PR in here. I'll clean that up
Noted from @jhusain's review: "perhaps we shouldn't pass the routerInstance around, but it it's probably not a big deal, it's likely we'll need it for something else in the future"
Related note from me: We're using the router instance in some of our middleware to pass in a logger that we use to that errorHook, so we need to have a this
context of the router instance in the _errorHook
call. @jhusain noted that using bind
might not be too expensive if we're doing it at the beginning of the merge, but we'll probably just leave the router instance passing for now.
cc @jhusain @sdesai