next-13 icon indicating copy to clipboard operation
next-13 copied to clipboard

Updated trpc query keys format for RSC to correspond to how trpc v10.0 format them

Open Fredkiss3 opened this issue 3 years ago • 2 comments

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 avatar Dec 22 '22 22:12 Fredkiss3

@Fredkiss3 is attempting to deploy a commit to the trpc Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Dec 22 '22 22:12 vercel[bot]

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.

Thinkscape avatar Apr 04 '23 11:04 Thinkscape