-
-
Notifications
You must be signed in to change notification settings - Fork 9
Guards
Plague Fox edited this page Jan 9, 2024
·
1 revision
Guards are a powerful tool for controlling navigation. They allow you to check the state of the router and mutate/cancel navigation if necessary. For example, you can check the user's authorization and redirect them to the login page if they are not authorized.
Examples: