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

React Native question

Theo in the past has metioned (and demoed!) the differences between controlled and uncontrolled inputs in react native / Expo and showed how slow they can be. It seems this is only really affects iOS, i am an android user so I have no way to verify. It looks like Dan Abramov made some noise about this, the team stated it was a regression, and it's (maybe?) no longer an issue....

How do you test pull requests beyond just reading code? (Research)

Hey developers! I'm researching how teams review and test pull requests, especially when you want to actually try out changes rather than just read the diff. Looking specifically for folks who: ...

DEV mode like arc in Zen

Does someone know a extension to Mac in zen the dev mode look similar like in arc? Trying to switch to zen again and this is the only thing I miss for know.

Can I specify the model of new chat through the url?

does anyone know whether i can specify which model i want to use through the url, i wanna add like a double bang to unduck like "!t3@o4m" or something similar

Advice: Better-Auth as a Backend noob?

So I've been working on developing an app for my church to use as a member portal. It's just me developing this app and I have very limited monetary resources. That's okay though because our church is also relatively small. Anyways, besides the point. I have very little backend experience, but am somewhat experienced with frontend stuff. I've setup Clerk for my app already (it's a Next.js app I've built over the last couple of weeks, I'm currently hosting on Vercel's free plan), but I'm beginning to regret my choice considering the limitations they place on free users (and there's absolutely no way that I would have the funds to pay for their paid plans.) (see above)...

Why radix-UI headless component render internal components if they're not mounted

After running the react profile for one of my page, I noticed this deep nested renders after using a RadixUI Dropdown component. As of now, I am only rendering the Button 👇 ```tsx /* ------- page/book.tsx ------- */...

Component Design Principle

Hello, I've been assigned a task to create a side menu that is responsable for creating or editing an entity. What I thought the models and inner workings of component shouldnt know about the API. That lead me to the need of mapping API models to side menu component's models. I would like to know how you or would you approach to this?...

Cookie deleting immediately after setting

When I sign in, it responds with a Set-Cookie in the HTTP Headers. So, it ofc sets the cookie. Then, the next time my code runs something that calls /api/auth/session, the request responds with a set-cookie with Max-Age=0, deleting the cookie. Why is it deleting the cookie?

Mind burst

Hello guys, First of all, thank you for taking the time to read this. I'm a software engineer with two years of experience. I joined a startup here in Morocco when the product barely existed, there was no clear vision, no real foundation, and the team had no idea how to bring it to life or make it accessible....

API Key Error

I recently upgraded my project’s tier and now I’m seeing this error: ERROR! Invalid token. A token is a base64 encoded JSON object matching { apiKey: string, appId: string, regions: string[] }....

MoR Payment Processing for SaaS

Hey all, I'm building a SaaS web app with a subscription pricing model and need help choosing a payment processor. This is my first time integrating payments, and since I'm based in Sweden, I'm leaning toward using a MoR to simplify taxes and compliance....

Problem with licenses creating for shop

hello anyone that is able to help me i am trying to make a shop with license so as example a month and lifetime but when i claim(buy) it its bought for everyone but i want that i am able to sell unlimited and that when someones redeems the license its get connected to his account (discord/email) can someone help i just started>
No description

Help with Clerk + Hono + tRPC (Turbo)

Hey there! I have a turbo setup (very similar to t3-turbo) where I am using Hono as a separate API backend and I am currently integrating Clerk auth into the app. I'm just struggling to get the auth workflow correct as a lot of the online guides for clerk + hono are either outdated or only apply to a fullstack nextjs setup? Is anyone willing to guide me through it a bit? I think it's the trpc + clerk situation that is throwing me off! It's my first time trying out a turbo setup and hono!...

NextAuth on create.t3 rendering a server error | maybe a dumb question </3

it is the first time that i'm using t3 stack, I have setup everything with Google oAuth but the localhost is showing me "Server Error" after the google oAuth screens. The console shows me this: ``` [auth][details]: {} GET /api/auth/callback/google?code=4%2F0AVMBsJhKNdt6RN4yjbzTjwh_p9JkVHZo4EYryFuOT62Msrb4OmiCLK2lk1O_2kqGdkwO3g&scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+openid&authuser=0&prompt=consent 302 in 426ms GET /api/auth/error?error=Configuration 500 in 62ms...
No description

How to use t3-oss/env-nextjs without having to rebuild everything just for env variable change

Im strugling another hour soo maybe someone here will help me understand. I have something like this: ```js...

Questions about choosing a Macbook

Hello, long time Windows (+ WSL) user here, im thinking about getting a new laptop, specifically a Macbook. Currently I'm choosing between: - Macbook Pro M4 Pro 16" (14 cores) with 24GB RAM and 512 GB storage (2500€) - Macbook Pro M4 Pro 14" (12 cores) with 24 GB RAM and either 512 GB (2000€) or 1TB storage (2500€) My usecases would be: programming on the laptop, connecting to my homelab for either programming/managing homelab, and usual stuff like web browsing etc...

Bundle too big for manifest?

Hi, why my manifest route is 171kB in local build but 6.45MB when deployed to Vercel? It is actually a really simple route without need extra dependencies
No description

Static Nextjs Site Hits 5.9 Million Edge Function Invocations in 7 days

Seekig Help. How does a static nextjs site use edge functions. My site is deployed to netlify and I have their netlify/next package turned off during build but i also deployed it to vercel and the same outcome. I am getting edge function requests going. next.config.js...

listFiles sort order stable?

https://discord.com/channels/966627436387266600/1102510616326967306/1238479022854508696 Is this created_at ordering stable or happenstance? I don't see it stated in the docs....