Closed eduardoformiga closed 5 months ago
This PR aims to migrate to the new way to fetch data using Next 13.
instead of getServerStaticProps, now we fetch the data directly from the root layout.tsx.
getServerStaticProps
layout.tsx
locally, add a console log after the fetch function.
TBD
https://nextjs.org/docs/app/building-your-application/data-fetching
The latest updates on your projects. Learn more about Vercel for Git ↗︎
duplicated
What's the purpose of this pull request?
This PR aims to migrate to the new way to fetch data using Next 13.
How it works?
instead of
getServerStaticProps
, now we fetch the data directly from the rootlayout.tsx
.How to test it?
locally, add a console log after the fetch function.
Starters Deploy Preview
TBD
References
https://nextjs.org/docs/app/building-your-application/data-fetching