Bartholomeas
Explore posts from serversPPrisma
•Created by Bartholomeas on 8/22/2024 in #help-and-questions
SQLite with Prisma problems
2 replies
PPrisma
•Created by Bartholomeas on 8/21/2024 in #help-and-questions
Migrate sqlite to postgres
Hello! Currently i have SQLite database with Prisma. I need to transfer it (with entire data) to Postgres, it is easily possible? Didnt found any article or smth 😦
5 replies
TTCTheo's Typesafe Cult
•Created by Bartholomeas on 7/22/2024 in #questions
Deploying Expressjs to Vercel.
2 replies
TTCTheo's Typesafe Cult
•Created by Bartholomeas on 5/6/2024 in #questions
Dockerizing t3 app with mysql database
3 replies
TTCTheo's Typesafe Cult
•Created by Bartholomeas on 4/9/2024 in #questions
TRPC Revalidating serverside queries
3 replies
TTCTheo's Typesafe Cult
•Created by Bartholomeas on 4/6/2024 in #questions
Refetching/revalidating server query with TRPC
[Nextjs 14 app Dir]
Hello, i want to revalidate my query after form sumit but for some reason i dont know what am i doing wrong. As im newbie in trpc i want to just revalidate specified request "onSuccess" after mutation but it doesnt work.
Thats the code:
Here im fetching card of user (with .query),
then im passing it to CardStylesStoreProvider where im creating zustand store with that:
Lastly onsubmit im updating my DB with data and want to revalidate this previous request but for some reason it doesnt work.. When i change route and back im getting old state (it only works on total F5 reload)
12 replies
TTCTheo's Typesafe Cult
•Created by Bartholomeas on 2/5/2024 in #questions
Error handling in nextjs13
2 replies
TTCTheo's Typesafe Cult
•Created by Bartholomeas on 11/25/2023 in #questions
Revalidating tRPC server request/page after email change
Hello, i want to revalidate request where im getting user by his e-mail after e-mail change in settings, but have no idea how.
I have that request for getting currently logged in user profile:
and this is my component where im fetching this request:
in <ChangeEmailForm/> component im changing user email. After change im getting from getProfile request because it doesnt see user in DB with new e-mail. Is there any way to do it or ill need to move getProfile to client request?
4 replies
TTCTheo's Typesafe Cult
•Created by Bartholomeas on 11/21/2023 in #questions
How to invalidate query in T3?
Hello, how can i invalidate query in TRPC like that?
When its query, but it does not have any queryKey, revalidate or something like that.. Im using T3 Stack with nextjs. Thanks!
13 replies
TTCTheo's Typesafe Cult
•Created by Bartholomeas on 11/3/2023 in #questions
Usage of NextAuth with Prisma and Nextjs Appdir
2 replies