Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Fredkiss3
Copy link

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.

@vercel
Copy link

vercel bot commented Dec 22, 2022

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

A member of the Team first needs to authorize it.

@Thinkscape
Copy link

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.

mattddean added a commit to mattddean/t3-app-router-edge-drizzle that referenced this pull request Apr 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants