Swr: Suspense mode

Created on 13 Nov 2019  路  2Comments  路  Source: vercel/swr

hi~ I came again.

Suspense mode is not recommended by react officially yet.
Is it not used in the production environment for the time being?

question

Most helpful comment

Concurrent Mode is experimental, but Suspense it's not, you could use it already for Code Splitting with React.lazy and SWR works with that Suspense version too.

All 2 comments

Yep, Suspense is an experimental feature, only available in the experimental build. you can install an experimental build by run this command:

npm install react@experimental react-dom@experimental

See more: https://reactjs.org/docs/concurrent-mode-adoption.html

Concurrent Mode is experimental, but Suspense it's not, you could use it already for Code Splitting with React.lazy and SWR works with that Suspense version too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Svish picture Svish  路  4Comments

sergiodxa picture sergiodxa  路  4Comments

baoduy picture baoduy  路  4Comments

nainardev picture nainardev  路  4Comments

zahraHaghi picture zahraHaghi  路  3Comments