ExpressAdapter mixing useGlobalFilters and raw express error handler
#1214
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey @egmacke,
Yeah, that's correct. That's the intended behavior. We prefer to operate in the scope of the adapter in order to avoid unexpected side effects.
Mhmm I don't think there's a recommended way in this case, if using a pure express middleware solves your issue I would go for it. At first glance I don't see a straighforward way to go using the inversify adapter, and using both inversify and pure express middlewares could be worse. You can use inversify to easily build pure express middlewares in case middlewares have dependencies. I'll give it some thought.
You're absolutelly right, I'll go for it soon :) |
Beta Was this translation helpful? Give feedback.

Hey @egmacke,
Yeah, that's correct. That's the intended behavior. We prefer to operate in the scope of the adapter in order to avoid unexpected side effects.
Mhmm I don't think there's a recommended way in this case, if using a pure express middleware solves your issue I would go for it. At first glance I don't see a straighforward way to go using the inversify adapter, and using both inversify and pur…