fetch implementation does not support streams from the spec - needs implementation in React Native core
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C++
- Sterne
- 127k
- Forks
- 25.3k
- Ø Merge
- 1 T. 23 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
React Native has not implemented fetch on top of native APIs, and the fetch polyfill built on top of XHR does not support streams where response.body is a getter for a ReadableStream.
React Native version:
0.61.4
Steps To Reproduce
Use fetch and see that response.body is undefined rather than a getter for a ReadableStream according the the fetch spec.
Describe what you expected to happen:
I expected for response.body to be defined.
Related issues
https://github.com/facebook/react-native/issues/9629
https://github.com/facebook/react-native/issues/12912
https://github.com/github/fetch/issues/746#issuecomment-573251497 (cc @MattiasBuelens)
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das fetch-Polyfill und seine XHR-basierte Antwortverarbeitung zu lokalisieren, und vergleiche anschließend response.body mit der Fetch-Spezifikation und den verwandten Issues #9629 und #12912. Erledigt ist die Aufgabe, wenn Fetch-Antworten response.body als ReadableStream bereitstellen und das gemeldete Verhalten durch Tests abgedeckt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- react-native
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Ruhig
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100