Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

useRevalidator

Returns a revalidate function for manually triggering revalidation, as well as the current state of any manual revalidations

function useRevalidator(): {
revalidate: () => void;
state: import("https://esm.sh/v104/@remix-run/router@1.2.1/X-ZC9yZWFjdC1kb21AMTguMi4wLHJlYWN0QDE4LjIuMA/dist/index.d.ts").RevalidationState;
}
;
§
useRevalidator(): {
revalidate: () => void;
state: import("https://esm.sh/v104/@remix-run/router@1.2.1/X-ZC9yZWFjdC1kb21AMTguMi4wLHJlYWN0QDE4LjIuMA/dist/index.d.ts").RevalidationState;
}
[src]

§Return Type

§
{
revalidate: () => void;
state: import("https://esm.sh/v104/@remix-run/router@1.2.1/X-ZC9yZWFjdC1kb21AMTguMi4wLHJlYWN0QDE4LjIuMA/dist/index.d.ts").RevalidationState;
}
[src]