paint-brush
How To Implement The Prefetch Pattern in React Concurrent Modeby@ilyamkin
8,423 reads
8,423 reads

How To Implement The Prefetch Pattern in React Concurrent Mode

by Ilya Lyamkin5mNovember 8th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Ilya Lyamkin

Ilya Lyamkin

@ilyamkin

Senior Engineer @ Spotify

About @ilyamkin
LEARN MORE ABOUT @ILYAMKIN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Ilya Lyamkin HackerNoon profile picture
Ilya Lyamkin@ilyamkin
Senior Engineer @ Spotify

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite