vtex / faststore

Digital commerce toolkit for frontend developers
https://faststore.dev
MIT License
186 stars 58 forks source link

Feat: Next 13 global section data fetching #2302

Closed eduardoformiga closed 4 months ago

eduardoformiga commented 4 months ago

Depends on

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 root layout.tsx.

How to test it?

locally, add a console log after the fetch function.

References

https://nextjs.org/docs/app/building-your-application/data-fetching

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2024 7:04pm
codesandbox-ci[bot] commented 4 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.