Fetching Data on the Server
I was checking out the create-t3-app docs and saw that getServerSide props was discouraged. Then what would be the better way of data that should be available on page load. For example in my current project I have a nav bar that populates the products element with data fetched from the server. When activity on page is low response time can be around 2 seconds from supabase. Instead of fetching this on client side and waiting I'd rather have the page load for a bit longer and serve all as static html. Since hosting and database are in the same location it may even speed up the full load of the page. What would be the better alternative then fetching on client side for such case?
Solution
Since you're using tRPC, you could very well look into SSG and prefetching trpc queries