https://github.com/c-ehrlich/trpc-querykey-bug
demo for issue
https://github.com/c-ehrlich/trpc-querykey-bug
Last synced: 9 months ago
JSON representation
demo for issue
- Host: GitHub
- URL: https://github.com/c-ehrlich/trpc-querykey-bug
- Owner: c-ehrlich
- Created: 2022-10-11T21:36:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-11T21:36:19.000Z (over 3 years ago)
- Last Synced: 2025-05-30T09:57:58.668Z (about 1 year ago)
- Language: TypeScript
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
tRPC querykey issue demo
- seems to have been introduced in beta14
1. open localhost:3000, you will see it uses two different querykeys:
- ssr uses `["example.hello",{"text":"from tRPC"}]`
- useQuery uses `[["example","hello"],{"text":"from tRPC"}]`
2. downgrade all tRPC packages to 10.0.0-proxy-beta-13
- now both ssr and useQuery use `["example.hello",{"text":"from tRPC"}]`