UNPKG

everything-dev

Version:

A consolidated product package for building Module Federation apps with oRPC APIs.

29 lines • 1.21 kB
//#region src/ui/router-error.d.ts /** * Generic router error boundary component — shared by the client and SSR * router factories. Dependency-free by design: the framework cannot import * the app's UI kit, so primitives are plain markup + semantic tokens. */ /** * Whether the error-details block renders. `undefined` (the default) shows * details once the client is live — SSR HTML is what gets indexed, cached * and logged, so internal messages (RPC endpoints, digests, provider errors) * stay out of it, and the hydration pass renders the same details-free * markup before revealing. `true` always renders the block, `false` never * does. `suppress` is true while rendering on the server or pre-reveal. */ declare function shouldShowErrorDetails(showErrorDetails: boolean | undefined, suppress: boolean): boolean; declare function RouterError({ error, reset, messages, showErrorDetails }: { error: Error; reset?: () => void; messages?: { title: string; body: string; home: string; retry: string; }; showErrorDetails?: boolean; }): import("react").JSX.Element; //#endregion export { RouterError, shouldShowErrorDetails }; //# sourceMappingURL=router-error.d.mts.map