[]previous and next page

PrerenderRouteLoader

The prerender export of a route that is a function, loaded from the server bundle.

The prerender export of a route that is a function, loaded from the server bundle. id is the route id the function belongs to.

Import#

ts
import type { PrerenderRouteLoader } from "@shadow-js/dusk/vite";

Signature#

ts
interface PrerenderRouteLoader {
  readonly id: string;
  /** Loads the export: a function, a list, a boolean, or anything else (which is ignored). */
  readonly load: () => Promise<unknown>;
}

Members#

Name Type Description
id readonly id: string
load readonly load: () => Promise<unknown> Loads the export: a function, a list, a boolean, or anything else (which is ignored).