Correct way to fetch trpc data on SSR and CSR
Hello,
I am currently using trpc in my nextjs app router project and I am wondering what the best way of using trpc is with a mixture of SSR and CSR.
The issue I'm having is that because I'm fetching the data on the server, it also fetches on the client which menas I'm making a request needlessly, and I'm not sure what the best way of dealing with this is.
I have a page which is SSR rendered, so I fetch the data which will be used by the page:
0 Replies