Sean Cassiere
Explore posts from serversDTDrizzle Team
•Created by Screw on 1/6/2024 in #help
data is malformed on drizzle-kit V 0.20.10
Same here.
Something has changed between 0.20.9 and 0.20.10 which has broken the
generate:pg
command, where it crashes on the reading of the snapshot files.13 replies
DTDrizzle Team
•Created by Sean Cassiere on 8/23/2023 in #help
Type errors with 0.28.3
Yup that's what I'll be sticking to for now
7 replies
TTCTheo's Typesafe Cult
•Created by cdodev on 5/10/2023 in #questions
I need a bit of help understanding trpc
The
useQuery
hook shouldn't be called inside of a useEffect
.
If you want to called the subsequent requests on the client, you could moove that logic into a child component.
8 replies
TTCTheo's Typesafe Cult
•Created by kevinka on 5/6/2023 in #questions
should I share TRPC client in a internal package?
It's best to export the formed
appRouter
(plus its typings) and the createContext
function.
Then, in the server, import the appRouter
and the createContext
fn, and create the trpc instance on the server.
And on the client apps, import the typings for AppRouter
and create the trpc-react-query client-api to call the endpoint on the server.
The create-t3-turbo repo, is a great reference for this: https://github.com/t3-oss/create-t3-turbo/3 replies
TTCTheo's Typesafe Cult
•Created by Forsto on 1/23/2023 in #questions
Issue with server.msj
This prefix should only be used when it is safe to be exposed to the client-side, and anything specifically for the server should NOT be exposed to the client.
6 replies
TTCTheo's Typesafe Cult
•Created by Forsto on 1/23/2023 in #questions
Issue with server.msj
It should be like
6 replies
TTCTheo's Typesafe Cult
•Created by Forsto on 1/23/2023 in #questions
Issue with server.msj
Remove the
NEXT_PUBLIC_
prefix6 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 1/19/2023 in #questions
Can I zod this gamestate?
6 replies
TTCTheo's Typesafe Cult
•Created by Xaohs on 1/5/2023 in #questions
How to check if type is array?
Cannot say for certain TBH.
What I do know is that in my version of it, I'm directly passing the value into the
Array.isArray
vs accessing the reference of it on the object outside of the context of the .forEach
.13 replies