NextJS App router API Data Fetching in Server & Client Components!

preview_player
Показать описание

With Tailwind CSS and Typescript

Support me by subscribing to this channel ❤️



Find me somewhere below:

Рекомендации по теме
Комментарии
Автор

Thanks for the video! Are there different use cases where it would make sense to use this proxy route approach, vs an alternative approach where a server component passes data as props to a client component? I'm struggling with using a fetched image blob as a src for <Image />

evalarumbe
Автор

Im confused, i fetched data in my server component and i have added a few console logs in the server component. When i run npm run dev, the console log is displayed in my terminal but when i run npm run build followed with npm run start, the console logs will not appear. I am wondering if my server component equals fo server side rendering? Im also using app router. Can anyone help me?

ultragal
Автор

Hi, i am confused, next js have own routers, tan stack also have router, which one we should use, and how we should use tan stack tables.pls explain

regilearn
Автор

But, what I don't understand here, it takes some time for the data to be fetched, so all the components wait for the data to be fetched before rendering (under the code await getData()). How can we handle the data that has not fetched yet so we can still render components without the data

semenderoranak