fetch implementation does not support streams from the spec - needs implementation in React Native core
まだ誰も着手していません。
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.3k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 4
説明
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)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず fetch の polyfill とその XHR ベースのレスポンス処理を見つけ、response.body を Fetch 仕様および関連する issue #9629 と #12912 と比較します。fetch のレスポンスが response.body を ReadableStream として公開し、報告された動作がテストでカバーされていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react-native
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100