Replies: 1 comment
-
Middleware support is on the roadmap (#7643) and it will allows this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Implementing Cross-Cutting Concerns is one of the most crucial parts of any application. Here are some use case why we need them in our application.
Use Cases
Current Ways
Currently it's possible to wrap loaders to another function (e.g. a higher order function or some Policy pattern). e.g:
Expected Ways
The actual Cross-Cutting Concerns are there when you literally don't need to touch your code. Here are a few reasons:
High-level Solution
One possible solution could be introducing
Guard
which is registered globally in the app. This is the common behaviour in the NestJS or Angular world. Something like this:Or in
react-router-dom
you could do such a thing:Further ideas
Any further ideas are welcome.
Beta Was this translation helpful? Give feedback.
All reactions