hunk.code_window:       : UNDEFINED
     )
     // Override the cache if a new provider is given.
     if (cacheHandle) {
       extendedConfig.cache = cacheHandle[0]
       extendedConfig.mutate = cacheHandle[1]
     }
  
hunk.labels: keep keep keep keep replace replace replace keep keep
hunk.after_edit:   if (cacheContext) {
       extendedConfig.cache = cacheContext[0]
       extendedConfig.mutate = cacheContext[1]
  
hunk.file_path: src/utils/config-context.ts
hunk.type: replace
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.
  