exporttypeParamStatus =
| "ok"/** Not in the URL, the default applies. */
| "default"/** In the URL but equal to the default, the canonical URL leaves it out. */
| "redundant"/** In the URL in another encoding than the canonical one, e.g. compressed. */
| "non-canonical"/** In the URL but failing to decode, so the default applies. */
| "invalid";
Explains the URL's search params: each definition declaring one of them, in use by the page (read by a mounted component or revalidating a matched route) or passing isPageSource (typically the page's feature folders) with every param's decoded value and status, and the URL's params no loaded definition declares. Definitions in use are grouped into the page's own (page) and those declared outside feature folders (shared), the rest are unused.
The variable a definition is assigned to, read from the served module's code at the line of its define() call e.g. userBuildsSearchParams. Null when the call is not assigned to one.
Pairs each web storage entry with the persisted state definition owning it (if any loaded definition does) and says whether its value decodes. Definitions with nothing stored are listed apart, their default applies.
Starts recording console errors & warnings and uncaught errors for the dev toolbar. Installed from entry.client.tsx before hydration, so that hydration mismatches are caught too. Idempotent.
exportinterfaceFoundPermissions {
/** Where in the loader data the entity is, e.g. `tournament.ctx`. */
path: string;
/** A human readable hint of the entity: its name, title or id. */
label: string | null;
permissions: Record<string, number[]>;
}
Every server computed permissions object (a record of permission name to user ids, see docs/dev/permissions.md) found anywhere in the data, outermost first.
exportinterfaceLoggedRequest {
id: number;
method: string;
path: string;
kind: RequestKind;
/** `null` while in flight or when handling it threw. */
status: number | null;
startedAt: number;
durationMs: number | null;
queries: LoggedQuery[];
/** Queries past `MAX_QUERIES_PER_REQUEST`, counted but not kept. */
droppedQueryCount: number;
}
Builds the scenario's state out of fresh users through the factories, leaving existing data untouched, with web pushes off. Parameters left out take their default, numbers may come as strings (from the CLI). The server's caches are not refreshed, the caller does that.
exportinterfaceServerConsoleEntry {
id: number;
level: "error" | "warn";
message: string;
/** The request being handled when it was logged, if any. */
path: string | null;
/** How many times the identical message was logged. */
count: number;
firstAt: number;
lastAt: number;
}
Starts recording the dev server's console errors & warnings, which includes errors thrown by loaders and actions. The console is patched once; record is swapped on every call so the latest evaluation of this module (and its request log) does the recording after the dev server re-evaluates modules.