Errors & boundaries
ServerError
Lightweight fatal-error shell bundled with manicjs — distinct from custom ~500.tsx route modules.
<ServerError />
Minimal branded main layout shipped as ServerError from manicjs. It does not accept props — it always renders copy inviting the user to reload and check the console.
import { } from 'manicjs';
// Mostly used indirectly via Router boundaries — manual usage:
export default function () {
return < />;
}vs app/routes/~500.tsx
| Approach | Purpose |
|---|---|
ServerError export | Fast fallback shell consistent with Manic styling |
Custom ~500.tsx | Your branded route-level error page with props (error, layout, etc.) |
The Router wires window.__MANIC_ERROR_PAGES__.error to a lazy errorPage loader — implement export default function Page({ error }) there when you need props (Errors overview).
Styling hooks
Uses CSS variables such as --theme-background, --theme-accent, --theme-foreground — align with your theme tokens.