Skip to content
#

fetch

Here are 1,220 public repositories matching this topic...

swr
ahmedelgabri
ahmedelgabri commented Jan 13, 2020

A bit of context, we introduced swr two weeks ago to our codebase. Everything is working fine, but we started to get some reports about some parts of the app being broken in slightly older browsers (Chrome 49, Firefox 59, Edge 18, etc…)

We found out that swr was causing a syntax error in these browsers because webpack by default picked the ESM build (rightly so) but because it's not transp

node-fetch
bitinn
bitinn commented Nov 13, 2018

There used to be only one type of operational error from node-fetch: FetchError.

This is no longer the case as I can count at least six: Error, NodeError, TypeError, SyntaxError, AbortError and FetchError. All of them can be triggered in one way or another through invalid response.

We would like to unify them in some ways but it's (a) a breaking change, (b) sometimes not standa

prabirshrestha
prabirshrestha commented Sep 29, 2017

https://developers.google.com/web/updates/2017/09/abortable-fetch

Currently it is only implemented in Firefox 57 and is coming to other browsers soon.

const controller = new AbortController();
const signal = controller.signal;

setTimeout(() => controller.abort(), 5000);

fetch(url, { signal }).then(response => {
  return response.text();
}).then(text => {
  console.lo
CharlesMangwa
CharlesMangwa commented Mar 30, 2018

The repo currently lacks an example folder where the community could see how to use the library and get started with a simple copy/paste. This folder could also be useful to (future) contributors to make sure their changes are working and didn't break anything before submitting a PR. This example folder should integrate a React.js & a React Native project, probably created with [CRA](https://g

Improve this page

Add a description, image, and links to the fetch topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the fetch topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.