react-query
Version:
Hooks for managing, caching and syncing asynchronous and remote data in React
13 lines (12 loc) • 537 B
TypeScript
import { Persistor } from '../persistQueryClient-experimental';
interface CreateWebStoragePersistorOptions {
/** The storage client used for setting an retrieving items from cache */
storage: Storage;
/** The key to use when storing the cache */
key?: string;
/** To avoid spamming,
* pass a time in ms to throttle saving the cache to disk */
throttleTime?: number;
}
export declare function createWebStoragePersistor({ storage, key, throttleTime, }: CreateWebStoragePersistorOptions): Persistor;
export {};