Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

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

Closed
mattddean opened this issue Mar 18, 2023 · 3 comments
Closed

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

mattddean opened this issue Mar 18, 2023 · 3 comments

Comments

@mattddean
Copy link
Owner

mattddean commented Mar 18, 2023

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
Copy link

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

@mattddean
Copy link
Owner Author

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

@mattddean
Copy link
Owner Author

Made this update in the repo which supersedes this one.

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants