aditya
TTCTheo's Typesafe Cult
•Created by aditya on 7/28/2024 in #questions
Need some help with setting up Express with Next
7 replies
TTCTheo's Typesafe Cult
•Created by aditya on 6/11/2024 in #questions
Zod not validating file input
this is the zod schema but its throwing "Input not instance of File"
im checking that its a file on client also
8 replies
TTCTheo's Typesafe Cult
•Created by aditya on 6/11/2024 in #questions
Cannot upload files to supabase storage
4 replies
TTCTheo's Typesafe Cult
•Created by aditya on 5/17/2024 in #questions
Cannot get data out of Promis.allSettled()
I am trying to get data from db which requires a an array of individual queries like this:
why is this happening?
1 replies
TTCTheo's Typesafe Cult
•Created by aditya on 4/2/2024 in #questions
Query Invalidation with trpc not working with React Server Components and App Router
Hi guys, I am trying to do Optimistic updates with trpc but the problem is I am fetching data on the server component using trpc and passing it to client component
and here is the revalidation code
Here I've tried with revalidatePath but that also does nothing
Please help!!
32 replies
TTCTheo's Typesafe Cult
•Created by aditya on 3/19/2024 in #questions
create t3-app not working
6 replies
TTCTheo's Typesafe Cult
•Created by aditya on 2/24/2024 in #questions
Next Auth Session timing out
I just created a new T3 project with Drizzle, Next Auth and Supabase. But while working the session keeps timing out and I have to stop the dev server and sign in again for it to work
Error logs:
12 replies
TTCTheo's Typesafe Cult
•Created by aditya on 12/2/2023 in #questions
tRPC not invalidating queries called on RSC
I have a Home Component RSC which fetches the data by trpc and passes it to another client component.
The problem is when I mutate the data in the client component the original data isn't invalidated
My best guess would be because RSC don't get re-rendered .
how can I change my approach
10 replies
TTCTheo's Typesafe Cult
•Created by aditya on 11/7/2023 in #questions
weird error in input field
cannot type in input field
cannot type in the input field
4 replies
TTCTheo's Typesafe Cult
•Created by aditya on 11/3/2023 in #questions
UI and State not same after altering the state
this is my zustand code
This is the UI
Form.tsx
16 replies
TTCTheo's Typesafe Cult
•Created by aditya on 9/25/2023 in #questions
No response returning from api route
I'm making an api route to fetch/create a chatId for a chat room but its not returning any response, what is wrong here?
6 replies
TTCTheo's Typesafe Cult
•Created by aditya on 9/23/2023 in #questions
Drizzle FKey errror
I have a posts table in postgres and it has a parentPost Foreign key to allow posts inside post (something like twitter). Heres the schema.
I'm getting this error while inserting into this table
Here's the api code:
5 replies
TTCTheo's Typesafe Cult
•Created by aditya on 8/10/2023 in #questions
How to keep React state and db in sync with each other
I am making a like feature for a post where if user likes the post the counter increases on the ui and registers the like in db but sometimes the like counter goes into negative.
26 replies
TTCTheo's Typesafe Cult
•Created by aditya on 8/8/2023 in #questions
How to prefetch queries with tRPC?
6 replies
TTCTheo's Typesafe Cult
•Created by aditya on 6/13/2023 in #questions
Implementing share feature
1 replies
TTCTheo's Typesafe Cult
•Created by aditya on 6/3/2023 in #questions
Weird error in trpc procedure
12 replies
TTCTheo's Typesafe Cult
•Created by aditya on 4/3/2023 in #questions
WYSIWYG editors for ts
any recoms for WYSIWYG editors which work well with ts like quill and draftjs
16 replies
TTCTheo's Typesafe Cult
•Created by aditya on 4/2/2023 in #questions
prefetchInfinite on getServerSideProps using SSG helpers
2 replies
TTCTheo's Typesafe Cult
•Created by aditya on 3/31/2023 in #questions
Role bases authentication with Github Provider using next auth
I want to implement a role based authentication like admin, author and reader using next auth and providers like github, so far I've found doing the same using credentials, is it possible with providers like github etc?
20 replies
TTCTheo's Typesafe Cult
•Created by aditya on 2/22/2023 in #questions
electron + vite + react template?
does anyone have a template for electron vite and react without non-essenstial plugins.
1 replies