[]previous and next page

Revalidator

The state of the manual revalidation of the page's loader data.

The state of the manual revalidation of the page's loader data.

Import#

ts
import type { Revalidator } from "@shadow-js/dusk/client";

Signature#

ts
interface Revalidator {
  /** `loading` while a revalidation runs. */
  state(): "idle" | "loading";
  /** Refreshes the loader data of the current location. */
  revalidate(): Promise<void>;
}

Members#

Name Type Description
state state(): "idle" | "loading" loading while a revalidation runs.
revalidate revalidate(): Promise<void> Refreshes the loader data of the current location.