hunk.code_window:     const mutate = internalMutate.bind(UNDEFINED, provider) as ScopedMutator<
         Data
       >
       // Update the state if it's new, or the provider has been extended.
       SWRGlobalState.set(provider, [
         EVENT_REVALIDATORS,
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit:     let unsubscribe = noop
  
hunk.file_path: src/utils/cache.ts
hunk.type: add
file: # Refetch Interval
  
  ## One-Click Deploy
  
  Deploy your own SWR project with Vercel Now.
  
  [![Deploy with Vercel Now](https://vercel.com/button)](https://vercel.com/new/project?template=https://github.com/vercel/swr/tree/master/examples/refetch-interval)
  
  ## How to Use
  
  Download the example:
  
  ```bash
  curl https://codeload.github.com/vercel/swr/tar.gz/master | tar -xz --strip=2 swr-master/examples/refetch-interval
  cd refetch-interval
  ```
  
  Install it and run:
  
  ```bash
  yarn
  yarn dev
  # or
  npm install
  npm run dev
  ```
  
  Deploy it to the cloud with [now](https://vercel.com/home) ([download](https://vercel.com/download))
  
  ```
  now
  ```
  
  ## The Idea behind the Example
  
  Show how to make SWR fetch the API again in an interval automatically to ensure the data up-to-date.
  