Futures Trader
Futures Trader
TTCTheo's Typesafe Cult
Created by Futures Trader on 5/6/2023 in #questions
Clerk not saving username
I am stuck with Theo course as I am noticing he is requesting username from the user being logged in but my username for some reason is null. Any idea why that might be the case? I used both my email and github to login to the application but it never gets updated for some reason. Thanks for the clarity 😄
5 replies
TTCTheo's Typesafe Cult
Created by Futures Trader on 5/3/2023 in #questions
Does invalidate(); perform an actual refetch?
I am half way into the course video and I see void ctx.post.getAll.invalidate(); to show the new post we are making. Isn't this just refetching? Wouldn't it be better to have a local state/catch being updated when successful vs trying to refetch everything all over again? just seems very costly especially if an app grows. Please let me know if I am wrong in my thinking or how I should be thinking when we consider refetching data once successful. Thank you
24 replies
TTCTheo's Typesafe Cult
Created by Futures Trader on 5/2/2023 in #questions
TS not liking the post table
Hello. I am following Theo T3 Stack Tutorial - FROM 0 TO PROD and even though I do see T3 Stack has been updated. I am uncertain by once I add post, I get an error of Unsafe return of an any typed value.. I have reset my TS multiple times with no changes. All I did was change example out as it has been removed for post as return ctx.prisma.post.findMany();. Any advice is appreciated
3 replies
TTCTheo's Typesafe Cult
Created by Futures Trader on 4/28/2023 in #questions
NextJS React Server Components with tRPC
Hello all 😄 I tried to give this one a try and I see there are just "hacky" ways as tRCP doesn't seem to have been implemented to be more server side. Does anyone know when this might be changed or anything from the team? The app I am building is still new and I am transitioning to Theo T3. Saw the Next13 convention and I am hooked to try the new app directory. Have a great weekend
11 replies