hunk.code_window:       "swr/immutable": ["./immutable/index.ts"],
         "swr/mutation": ["./mutation/index.ts"],
         "swr/_internal": ["./_internal/index.ts"]
       },
       "incremental": true
     }, 
     "exclude": ["./**/dist", "examples"],
     "watchOptions": {
       "watchFile": "useFsEvents",
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:   },
  
hunk.file_path: tsconfig.json
hunk.type: replace
file: const data = []
  
  function shouldFail() {
    return Math.random() > 0.8
  }
  
  export default function api(req, res) {
    if (req.method === 'POST') {
      const body = JSON.parse(req.body)
      // sometimes it will fail, and this will cause a regression in the UI
      if (!shouldFail()) {
        data.push(body.text);
      }
      res.json(data)
      return
    }
  
    setTimeout(() => {
      res.json(data)
    }, 2000)
  }
  
  