Lautaro_dapin
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Lautaro_dapin on 10/2/2023 in #questions
Database migrations
Is there any tool to create migrations with typescript script support? like django or alembic has??
I only found kysely, which has a migration system but you still have to write your own migrations, which seem pretty stupid due to the fact that you have all the types to make it automagically
9 replies
Optimistic update on infinite query
Node 18.12.1 with pnpm
trpc v 10.28.1
I have the following query to render a list of posts
Then inside the
Post
component i have the following muutation to toggle a like server state
But for some reason when i want to update the cache for an optimistic update the cache is always empty, idk why
2 replies
DTDrizzle Team
•Created by Lautaro_dapin on 6/6/2023 in #help
Sveltekit Failed to resolve import "cloudflare:sockets"
I was trying to use drizzle orm in a sveltekit project with postgres run in a docker container, but i'm having the following error
7 replies
TTCTheo's Typesafe Cult
•Created by Lautaro_dapin on 2/17/2023 in #questions
Middleware doesn't load the `server.mjs` variables
I have the followinng middleware in
src/middleware.ts
But i get the zod error because the serverSchema
fails the parse.
9 replies
TTCTheo's Typesafe Cult
•Created by Lautaro_dapin on 11/23/2022 in #questions
T3 Stacks requires internet?
Does tRCP requires internet connection for been used? I was in the field without internet conection and the requests to the backend tRCP were not been executed
6 replies