fetch 방법

Category
스터디노트 NextJS
Status
Published
Tags
NextJS
TypeScript
성능최적화
Description
Published
Slug
기본적으로, 여러개를 fetch하는 방법 (허나, 순차적으로 데이터를 페치해와서 오래 기다려야 한다는 문제 있음)
notion image
 
병렬적으로 fetch하는 방법
notion image
 
 
병렬적으로 render하는데, 하나의 요청이 완료되면, 즉시 component가 render되도록
-> page전체가 로딩되지 않고 부분적 로딩
notion image
notion image