How To Implement The Prefetch Pattern in React Concurrent Modeby@ilyamkin
6,839 reads

How To Implement The Prefetch Pattern in React Concurrent Mode

November 8th 2019
5 min
by @ilyamkin 6,839 reads
tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

React announced a feature of the React ecosystem — Concurrent Mode. This would allow us to stop or delay the execution of components for the time that we need. We start rendering components and each of these components may trigger data fetching in their effects and lifecycle methods. There are three ways to do it: Fetch-on-render, Render-as-you-fetch and Render-As-You-Fetch-then-render. Render early with Suspense is a function that performs therequest and returns object that we’re going to pass to the component.

Company Mentioned

Mention Thumbnail
featured image - How To Implement The Prefetch Pattern in React Concurrent Mode
Ilya Lyamkin HackerNoon profile picture

@ilyamkin

Ilya Lyamkin

About @ilyamkin
LEARN MORE ABOUT @ILYAMKIN'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa