📜 Outpost Verdicts ​
Outpost handlers must return a verdict that determines how navigation proceeds.
📋 Return Values ​
| Return | Result | Navigation |
|---|---|---|
verdicts.ALLOW | Continue | Proceeds |
verdicts.BLOCK | Cancel | Stops immediately |
{ name: 'route' } | Redirect (named) | Redirects |
{ path: '/path' } | Redirect (path) | Redirects |
'/path' | Redirect (string) | Redirects |
throw Error | Error | Handled by onError |
📊 Outpost Verdict Decision Flow ​
WARNING
Redirect routes are validated against the router. If the route is not found, an error is thrown.
TIP
The handler receives a context object with verdicts, to, from, router, and hook. See Handler Context for the full interface and usage examples.
TIP
When a handler throws an error, the citadel catches it and handles gracefully. See Error Handling for the full error flow, onError, onTimeout, and afterEach behavior.
Diagram Legend
| Color | Meaning |
|---|---|
| 🟢 | Success, ALLOW, continue |
| 🟡 | Warning, redirect, deduplicate |
| 🔴 | Error, BLOCK, cancel |
| 🔵 | Logging (when logger is enabled) |
| 🟣 | Named debug breakpoint (debug: true) |