Update tRPC and the internal @trpc/next-layout client to match
Closed this issue · 3 comments
mattddean commented
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.
Thinkscape commented
This PR fixes it: trpc/next-13#39
mattddean commented
Great find! Feel free to open a PR, otherwise I'll probably add it this weekend.
mattddean commented
Made this update in the repo which supersedes this one.