repo_description: React Hooks for Data Fetching
repo_topics: cache data data-fetching fetch hook hooks nextjs react react-native stale-while-revalidate suspense swr vercel
code: // useSWR
  import useSWR from './use-swr'
  export default useSWR
  // Core APIs
  export { SWRConfig } from './use-swr'
  export { unstable_serialize } from './serialize'
  export { useSWRConfig } from '../_internal'
  export { mutate } from '../_internal'
  export { preload } from '../_internal'
  
  // Config
  
  // eslint-disable-next-line @typescript-eslint/no-empty-object-type
  export interface SWRGlobalConfig {
    // suspense: true
  }
  
  // Types
  export type {
    SWRConfiguration,
    Revalidator,
    RevalidatorOptions,
    Key,
    KeyLoader,
    KeyedMutator,
    SWRHook,
    SWRResponse,
    Cache,
    BareFetcher,
    Fetcher,
    MutatorCallback,
    MutatorOptions,
    Middleware,
    Arguments,
    State,
    ScopedMutator
  } from '../_internal'
  