#jotai react query
Suspense for Data Fetching: How to Fetch During RenderWatch video: Suspense for Data Fetching: How to Fetch During Render
React Summit US 2023
5 min
Suspense for Data Fetching: How to Fetch During Render
This talk discusses the best practices for fetching data during the initial render of a component in React. It emphasizes the importance of fetching in advance and avoiding fetching twice. The talk also highlights the need for an external cache to store information about API calls and the use of a cleanup function to avoid memory leaks. Additionally, the speaker mentions their library, react-disposable-state, which can be used for making side effects during render.