Redirect to another route. Useful for protecting routes or redirecting from old paths.
| Prop | Type | Description |
|---|---|---|
href | string | The path to redirect to |
The redirect only fires once per mount, even if the screen is focused multiple times (e.g., navigating away and back). This prevents redirect loops in scenarios like authentication guards.
Edit this page on GitHub.