tRPC, SSR, RSC/app directory
Is it possible to use tRPC when rendering a component on the server to get an initial value for a request before refetching on the client on mount? If not, what is the next best thing?
Does anyone have a current workflow in which they are successfully using tRPC with the app directory and able to SSR with data from tRPC useQuery?
Is there an alternative solution to using react-query or swr with fetch?
fetch on the server and pass value to the client component using tRPC to set the initialValue on useQuery? Are there problems with that?Does anyone have a current workflow in which they are successfully using tRPC with the app directory and able to SSR with data from tRPC useQuery?
Is there an alternative solution to using react-query or swr with fetch?