Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.05 KB

File metadata and controls

49 lines (30 loc) · 1.05 KB

nextdatafetching-Next

There are multiple ways to fetch data in next js and I wanted to demo some common ways.

Next so fetch

An app that demos multiple ways to fetch data with next js

next-data-fetching-app-router.vercel.app

To run:

Dev

npm install
npm run dev

Prod

npm run build
npm start

Overall design reference repos

Helpful video around differences btw next js 12 and 13: https://www.youtube.com/watch?v=WfgSm_q6HeE

Server vs Client Components: https://www.youtube.com/watch?v=aoHK8skFZ1U

Page Router Vs App Router

This repo is uses app router as it seems to be the latest flavor promoted by Next JS/Vercel.

Follow Up

Notes

I had to use wrapper components because when loading both data in the same page, one with timeout and one without, it caused examples to not be accurate.