Should middleware be aware of whether a match was found or not? #41
bradcypert
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I ran into an interesting issue where my middleware was running and trying to access values from the DI container although the route was 404ing, which resulted in an empty container (perhaps this is actually the issue here). That being said, it would be nice to be able to avoid unnecessary operations if we dont want to run those operations on 404s or other issues.
Possible outcomes:
Beta Was this translation helpful? Give feedback.
All reactions