UNPKG

@wanp/use-swr-data

Version:

use-swr-data is a React hook that simplifies data fetching and caching using SWR (stale-while-revalidate) strategy.

5 lines (4 loc) 187 B
import type { SWRConfiguration } from "swr"; import type { PageInfo } from "./interface"; export declare const DEFAULT_PAGE: PageInfo; export declare const SIMPLE_CONF: SWRConfiguration;