You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a bug where I had a chain of middleware and accidentally called next() twice inside a single middleware. This caused the next middleware, which was async in nature, to be ignored since the handler after that was the final route handler.
Perhaps it would be nice to only allow a middleware to call next() once and throw an error after that?
Just wanted to bring this to the maintainers attention to make sure this is functionality that is desired.
The text was updated successfully, but these errors were encountered:
Hi! Yes, we want to add that validation, but are unable to in 4.x because for whatever reason people are abusing that currently. We plan to validate this in 5.x
I had a bug where I had a chain of middleware and accidentally called next() twice inside a single middleware. This caused the next middleware, which was async in nature, to be ignored since the handler after that was the final route handler.
Perhaps it would be nice to only allow a middleware to call next() once and throw an error after that?
Just wanted to bring this to the maintainers attention to make sure this is functionality that is desired.
The text was updated successfully, but these errors were encountered: