theFern
theFern
Explore posts from servers
TTCTheo's Typesafe Cult
Created by theFern on 1/11/2024 in #questions
What are some T3 community recommendations for a toast library?
Is Toastify still a good option?
7 replies
TTCTheo's Typesafe Cult
Created by theFern on 10/5/2023 in #questions
Has anybody's CSS looked weird after upgrading Node or Next.js?
I have an existing project which I upgraded to Node v18.0.0 from v16 and to the newest version of Next and ever since then my CSS colors look off. I am using Tailwind with a custom theme color palette but I haven't changed it since I upgraded.
2 replies
TTCTheo's Typesafe Cult
Created by theFern on 12/21/2022 in #questions
How do you switch from main branch to development branch in Planetscale + Prisma?
2 replies
TTCTheo's Typesafe Cult
Created by theFern on 12/13/2022 in #questions
Are there any examples on how to implement web notifications?
If, for example, a User A leaves a comment on User B's photo, how do I show a notification to User B? I would need to know if User B has seen the comment or not. How would I check that? I'm assuming I would need a Notifications Table in my database with a one-to-many relationship. Where each user would have one notification table with many notifications. The notifications would have to get deleted automatically once the user sees the new comment. Are there any examples that show how to implement such a system? Thank you!!
3 replies
TTCTheo's Typesafe Cult
Created by theFern on 12/13/2022 in #questions
Anyone here from Miami down to team up for Miami Hack Week?
Here is their website: https://www.miamihackweek.com/
1 replies
TTCTheo's Typesafe Cult
Created by theFern on 12/12/2022 in #questions
Is there a way on NextAuth to redirect upon login to a specific page based on session role?
E.g. - If session.role === 'teacher', redirect to '/teacher/dashboard', else - redirect to '/admin/dashboard' The NextAuth docs don't show a way to redirect based on session data: https://next-auth.js.org/configuration/callbacks#redirect-callback
9 replies
TTCTheo's Typesafe Cult
Created by theFern on 12/7/2022 in #questions
Deployment Errors on Vercel related to Tanstack NPM Packages
12 replies
TTCTheo's Typesafe Cult
Created by theFern on 11/30/2022 in #questions
Any recommendations for a date library?
From my research it seems date-fns and dayjs are the most used ones. Does anyone have any experience with these or any other that you recommend? Eventually my app will have pretty robust scheduling functionality including scheduling online classes with 30 min. intervals. Thanks!
6 replies
TTCTheo's Typesafe Cult
Created by theFern on 11/27/2022 in #questions
Is the Tailwind Black Friday Bundle worth it? TailwindUI + RefactoringUI?
5 replies
TTCTheo's Typesafe Cult
Created by theFern on 11/25/2022 in #questions
Type error with tRPC, Zod, Prisma
7 replies
TTCTheo's Typesafe Cult
Created by theFern on 11/23/2022 in #questions
Does anyone have any examples on how to declare global user context from database with t3 stack?
I know I can get the session from next-auth with useSession() but I need a way to get current user ID from the database. useSession() is not connected to the database.
8 replies
TTCTheo's Typesafe Cult
Created by theFern on 11/16/2022 in #questions
tRPC, query invalidation is not working
This is the code I have inside the component const utils = trpc.useContext() const students = trpc.student.getAll.useQuery() const addStudentTRPC = trpc.student.add.useMutation({ onSuccess() { utils.student.getAll.invalidate() }, }) The mutation works fine but it doesn't invalidate the queries on success. I tried fetch(), refetch() and they don't work either. What am I missing? Thanks!
13 replies