Next.js 13 select from table works but after initial refresh it returns null

I followed this video https://www.youtube.com/watch?v=QH0P5xZt5wY&ab_channel=Supabase and I have data fetching from the the database table working. But when I refresh the page I get returned null. I have to rerun the project for it to then fetch data again.
image.png
YouTubeSupabase
Next.js version 13 was announced at last week's Next.js Conf 2022! With it comes exciting new ways to fetch and cache data, more closely aligned with the future of React. In this stream, Jon takes us through the new "app" directory and demonstrates fetching and caching Supabase data with Next.js 13.

Example repo: https://github.com/dijonmusters...
Was this page helpful?