Skip to content

Commit ddbcaef

Browse files
committed
Merge branch 'master' into useAsync
2 parents 735d7b4 + 8cb4139 commit ddbcaef

File tree

5 files changed

+478
-413
lines changed

5 files changed

+478
-413
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
<img src="https://img.shields.io/bundlephobia/min/react-async.svg" alt="minified size">
1616
</a>
1717
<a href="https://travis-ci.org/ghengeveld/react-async">
18-
<img src="https://img.shields.io/travis/ghengeveld/react-async.svg" alt="build status">
18+
<img src="https://img.shields.io/travis/ghengeveld/react-async/master.svg" alt="build status">
1919
</a>
2020
<a href="https://codecov.io/github/ghengeveld/react-async">
21-
<img src="https://img.shields.io/codecov/c/github/ghengeveld/react-async.svg" alt="code coverage">
21+
<img src="https://img.shields.io/codecov/c/github/ghengeveld/react-async/master.svg" alt="code coverage">
2222
</a>
2323
<a href="https://opensource.org/licenses/ISC">
2424
<img src="https://img.shields.io/npm/l/react-async.svg" alt="license">
@@ -63,6 +63,19 @@ from your routes, so it works well in complex applications that have a dynamic r
6363

6464
React Async is promise-based, so you can resolve anything you want, not just `fetch` requests.
6565

66+
## Concurrent React and Suspense
67+
68+
The React team is currently working on a large rewrite called [Concurrent React], previously known as "Async React".
69+
Part of this rewrite is Suspense, which is a generic way for components to suspend rendering while they load data from
70+
a cache. It can render a fallback UI while loading data, much like `<Async.Loading>`.
71+
72+
React Async has no direct relation to Concurrent React. They are conceptually close, but not the same. React Async is
73+
meant to make dealing with asynchronous business logic easier. Concurrent React will make those features have less
74+
impact on performance and usability. When Suspense lands, React Async will make full use of Suspense features. In fact
75+
you can already **start using React Async right now**, and in a later update you'll **get Suspense features for free**.
76+
77+
[concurrent react]: https://github.com/sw-yx/fresh-concurrent-react/blob/master/Intro.md#introduction-what-is-concurrent-react
78+
6679
## Install
6780

6881
```

package-lock.json

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-async",
3-
"version": "3.8.1",
3+
"version": "3.8.2",
44
"description": "React component for declarative promise resolution and data fetching",
55
"keywords": [
66
"react",
@@ -19,9 +19,11 @@
1919
"registry": "https://registry.npmjs.org/"
2020
},
2121
"main": "lib/index.js",
22+
"typings": "typings/index.d.ts",
2223
"files": [
2324
"lib",
24-
"src"
25+
"src",
26+
"typings"
2527
],
2628
"scripts": {
2729
"build": "rimraf lib && babel src -d lib --ignore '**/*spec.js'",

0 commit comments

Comments
 (0)