next-13
next-13 copied to clipboard
Updated trpc query keys format for RSC to correspond to how trpc v10.0 format them
When updating to tRPC v10.0, I noticed that the format of the query keys used had slightly changed. Because of this, TRPC would refetch on the client. I corrected it based on what I could gather from the devtools, and now it reuses the same query data from the server.
@Fredkiss3 is attempting to deploy a commit to the trpc Team on Vercel.
A member of the Team first needs to authorize it.
Without this change, the project doesn't work as intended - the hydrated cache's hash doesn't match, and the client component has to fetch the list again.