Reducing code repetition with guards #227
Unanswered
Indeedornot
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I am using routing guards to ensure the given parameters are of a correct type - however it causes a lot of unnecessary code repetition - due to beforeEnter being a macro and cannot share any code
another thing is that i cannot use any casts or
satisfies
inside ofbeforeEnter
due to it throwing an errorBeta Was this translation helpful? Give feedback.
All reactions