Theo's Typesafe Cult

TTC

Theo's Typesafe Cult

Join the community to ask questions about Theo's Typesafe Cult and get answers from other members.

Join

Does Prisma adapter work with credentials in NextAuth?

I'm trying to get credentials login to work with Prisma adapter, but I'm running into issues, and I saw some posts on stack overflow, that it isn't possible. Did it get updated already or do I still need to use JWT sessions?

next-auth session callback not recognizing new user property

I updated the User schema in schema.prisma like this: ``` model User { id String @id @default(cuid()) name String?...

library for converting form data to an object based on zod model

hello. is there a library that can convert form data submitted, which will be all strings into an object based on a zod model that I create with zod-prisma, that does not have preprocess or transform applied to it?

Is the Tailwind Black Friday Bundle worth it? TailwindUI + RefactoringUI?

Has anybody purchased this? What are your thoughts? What even is RefactoringUI?

'paginationRange.length' is possibly 'undefined'.ts(18048)

I don't know how to get rid of this error 'paginationRange.length' is possibly 'undefined'.ts(18048) `export type IPaginate = { totalCount: number pageSize: number...

Can you help me figure out why this page is loading so fast?

https://nextjs-typescript-react-stripe-js.vercel.app/donate-with-elements I implemented Stripe Elements into my webpage yesterday. To load it you need to first create a payment intent and receive a secret client key to load the Stripe component. When you go on this site, the component just loads instantly as if the page is static or something...? You can see the GitHub repo below. I'm only concerned about the /donate-with-elements part. I've been trying to scour the code and see what they did differently, but I can't figure out how their page loads so fast....

eslint & tailwind intellisense issue

random new error when opening any projects

UnoCss

I feel like a complete idiot. Im looking to add UnoCss to a fresh ct3a repo. Should I just go fro the CLI version and add it to my build and dev scripts?

Server folder in create-t3-app

I am not using nextjs custom server (server folder).I am using my backend code api. Is there any way to create-t3-app without it,or I need to delete it and manage the files there on my own?...

Question about implementing inline search filters

Does anybody have suggestions on implementing inline search box parameters? i.e. if you are searching issues in a github repo there's stuff like is:open author:username archived:false etc... is there any recommended reading on how to implement parsing these types of entries into the field? Do you basically just scan for 'parameter:query' and then just space-delimit it to separate the search terms from the filters/parameters?...

Support for ESM 3rd party npm modules

Hi all, I'm between a rock and a hard place. I've created my app using:...

trpc or react-query like set-up for just 1 time calls

Right now I have a handler under /api/something and then I fetch(' /api/something') inside useEffect(). Is there a way to use trpc/react query to just do an api call *once like useEffect(() => {}, []) empty dependency array??

What would people want from an 'S3 but nice to use' ?

What would people actually want different? How would you ideally interact with it? What could they add?

Is the server a 'custom server'

I'd like to understand how vercel prices the deployment - Is the server custom (https://nextjs.org/docs/advanced-features/custom-server), I.E would it be running at all times once you deploy to vercel, or does it start only @ the RPC invocation? - If it does only start for each invocation, I'm guessing something like a local sqlite DB wouldn't work with this setup, as it wouldn't persist between teardowns?...

Tanstack tables giving errors during deployment on vercel?

Does anybody know how to interpret these errors?

help with firebase

firebase auth invalid api key error when using the app. The key is correct, any idea why is this happening?...

Is this intended JS behavior?

Came across this problem when using switch statements. Doesnt seem like each case has its own scope, however, you cannot access a variable outside of the case it was defined in (which i wasnt expecting to be able to do anyway, but if i did it would at least make sense) despite not being able to share variable names from case to case. Take the following example ```js function test() {...

NextJS Per Page Layouts

So I got per page layouts working (using pages directory method) following the docs, but I cannot figure out how this is working for the life of me. Can anyone explain the types and the general idea of what is going on here? I would highly appreciate it. Thanks...