Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in README.md #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ import makeCancelable from '../util/Cancelable'

## 可取消的网络请求fetch

`fetch`是React Native开发过程中最常用的网络请求API,和`Promis`一样,fetch也没有提供用于取消已发出的网络请求的API。因为fetch返回的是一个`Promise`,所以我们可以借助上述方法,来取消fetch所发出的网络请求。
`fetch`是React Native开发过程中最常用的网络请求API,和`Promise`一样,fetch也没有提供用于取消已发出的网络请求的API。因为fetch返回的是一个`Promise`,所以我们可以借助上述方法,来取消fetch所发出的网络请求。

```JavaScript
this.cancelable = makeCancelable(fetch('url')));
Expand Down