♡🔮cynthia🐾♡
♡🔮cynthia🐾♡
TTCTheo's Typesafe Cult
Created by ♡🔮cynthia🐾♡ on 6/11/2023 in #questions
App dir + tRPC +
Maybe back to /pages we go
21 replies
TTCTheo's Typesafe Cult
Created by ♡🔮cynthia🐾♡ on 6/11/2023 in #questions
App dir + tRPC +
https://github.com/trpc/trpc/blob/main/packages/next/src/app-dir/client.ts Unless I'm missing something it looks like it's just using a Map
21 replies
TTCTheo's Typesafe Cult
Created by ♡🔮cynthia🐾♡ on 6/11/2023 in #questions
App dir + tRPC +
Ah nvm looks like it doesnt use react query at all for experimental_createTRPCNextAppDirClient
21 replies
TTCTheo's Typesafe Cult
Created by ♡🔮cynthia🐾♡ on 6/11/2023 in #questions
App dir + tRPC +
if it's using react-query under the hood (or maybe it isnt?), im curious as to why using experimental_createTRPCNextAppDirClient from @trpc/next/app-dir/client that api.post.get.query({id: 1}) doesnt have to follow the "rule of hooks" where as if I use something like createTRPCReact from @trpc/client then api.post.get.useQuery({id: 1}) does.
21 replies
TTCTheo's Typesafe Cult
Created by ♡🔮cynthia🐾♡ on 6/11/2023 in #questions
App dir + tRPC +
This is very useful
21 replies
TTCTheo's Typesafe Cult
Created by ♡🔮cynthia🐾♡ on 6/11/2023 in #questions
App dir + tRPC +
Sorry to clarify I am using the app directory. I didn't know it was using react-query under the hood ty!
21 replies