mattddean/t3-app-router-edge

Update tRPC and the internal @trpc/next-layout client to match

Closed this issue · 3 comments

This project is on tRPC 10, but not the newest version thereof.

Update query key generation to match how the newest version of tRPC works so that server state dehydration and client hydration of that state continue to match.

If we only update the tRPC packages, and don't update the @trpc/next-layout client's query keys to match, the server and client query keys will not match and the client will ignore the react-query cache state provided by the server.

This PR fixes it: trpc/next-13#39

Great find! Feel free to open a PR, otherwise I'll probably add it this weekend.

Made this update in the repo which supersedes this one.

mattddean/t3-app-router-edge-drizzle@6a13117