UNPKG

next

Version:

The React Framework

7 lines (6 loc) 541 B
import type { WorkStore } from './app-render/work-async-storage.external'; /** Run a callback, and execute any *new* revalidations added during its runtime. */ export declare function withExecuteRevalidates<T>(store: WorkStore | undefined, callback: () => Promise<T>): Promise<T>; type RevalidationState = Required<Pick<WorkStore, 'pendingRevalidatedTags' | 'pendingRevalidates' | 'pendingRevalidateWrites'>>; export declare function executeRevalidates(workStore: WorkStore, state?: RevalidationState): Promise<[void, ...any[]]>; export {};