Data fetching
Last updated
Was this helpful?
Last updated
Was this helpful?
When fetching for data in your Next.js pages you can follow the recommended approach for handling prefetching and loading states:
This will allow to have this data already ready in the initial load, reducing the number of loading states and null/undefined checks.