fetchData를 병렬로 가져오기
async function Page() {
const movies = await getMoives(id); // 5seconds
const videos = await getVideos(id); // + 5seconds
return(
//...
)
}Promise.all
const [movies, videos] = Promise.all([getMovies(id), getVideos(id)]);Suspense
Last updated