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
constmiddleware=every(except(_=>true,// True means it won't run 🛑()=>{console.log("1st middleware ran");}),except(_=>false,// False means it WILL run ✅()=>{console.log("2nd middleware ran");}));
But the output will still be:
1st middleware ran
2nd middleware ran
I don't understand... Why did 1st middleware run even when its "except" is true?
Also, the only case that the first middleware won't run is when both are true.
What is the expected behavior?
Only 2nd will run, and 1st won't.
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Hono are you using?
4.6.3
What runtime/platform is your app running on?
Node
What steps can reproduce the bug?
Just this piece of code for the middleware
But the output will still be:
I don't understand... Why did 1st middleware run even when its "except" is
true
?Also, the only case that the first middleware won't run is when both are
true
.What is the expected behavior?
Only 2nd will run, and 1st won't.
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: