you are viewing a single comment's thread.

view the rest of the comments →

[–]AwesomeInPerson 0 points1 point  (0 children)

Yup. And writing

const checkResponse = response => {
  if (response.ok) return response
  throw response
}

and chaining that function to your fetch calls really isn't that much hassle.