react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

Suspense feature description ambiguity between release note and React API reference

Open Enuvid opened this issue 3 years ago • 0 comments

On actual (v18.2.0) React API reference page (https://reactjs.org/docs/react-api.html) is written:

Today, lazy loading components is the only use case supported by <React.Suspense>:

and

In the future we plan to let Suspense handle more scenarios such as data fetching. You can read about this in our roadmap.

(also interesting that this link referring into React 16 Roadmap while we have 18 released.)

At the same time React 18 Release Page says that:

In React 18, you can start using Suspense for data fetching in opinionated frameworks like Relay, Next.js, Hydrogen, or Remix.

and looks like 'Suspense for data fetching' can be used and information in React API reference in outdated?

Enuvid avatar Jul 19 '22 09:07 Enuvid