UNPKG

@rocketmakers/api-swr

Version:

Rocketmakers front-end library for parsing a generated Typescript API client into a set of configurable React hooks for fetching and mutating data.

9 lines (8 loc) 232 B
/** * A custom hook that provides a function to clear the SWR cache. * * @example * const clearCache = useClearCache(); * clearCache(); // Clears the SWR cache */ export declare const useClearCache: () => () => Promise<void>;