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

Can I show component-specific props at the top of intellisense in VSCode??

When I'm using a React component that extends HTML elements, the intellisense dropdown shows me all the HTML attributes mixed in with the few custom props. For example, with something like <SandpackFileExplorer>, I have to scroll through dozens of aria-* attributes to find the 2-3 custom props that I am searching for. This makes it so I need to go to the docs or inspect the component to see which extra props are on an component. Is there any way (extension, setting) to make VS Code show component-specific props at the top of the intellisense dropdown?...

t3.chat message limits on pro plan

Is the 1500-message-per-month limit really practical for power users? I see myself blowing past that cap pretty often, especially when you break it down to just about 50 messages a day. I’m honestly loving the UX on t3.chat—it looks awesome, and I’d love to dive in—but that message limit’s giving me some serious pause. Am I missing something here? Am I overthinking how easy it’d be to hit that ceiling?
Solution:
maybe. i personally never come close to that limit but i'm not a power user. regardless, i think for 8 usd it's still worth it

React Markdown Icon Component

I’m so lost on how to write the parser to allow for custom icons in React Markdown.

Looking for a buyer - 10gb/s server.

Im selling a server for 2months for 1500$ - crypto only (XMR preferred) - EU based 2x Xeon E5-2680 V4, 3.30GHz Turbo, 28 Cores, 56 Threads 256GB DDR4 1x 4TB SSD 10Gbps Dedicated Unmetered Bandwidth...

Auth in middleware

Obviously there has been a lot of recent discussion about authentication in next middleware. I’ve gathered that the general sentiment is that it is best to confirm auth closer to the data. I’m working on my first next app now, so that is the practice I’m following. But as im integrating uploadthing into my project, I see them recommending auth checks in the uploadthing middleware in the docs. So I’m a bit confused on when it is and isn’t ok to check auth in your middleware. Is it always just as an optimistic check?...

Passing TRPC fetched data to child via props - Type definitions?

Hi, when I fetch data and loop through it in the same view - the Type for the children of the array are automatically inferred thanks to TRPC
No description

Does T3 chat anonymize user chat before sending to the api?

I am unable to find the privacy section of t3.chat if someone can give me the link it will be awesome.

Is NextJS just slow?

Not gonna lie, I've been a long time vue/svelte dev, but lately have wanted to give react a shot and decided to go with t3. I've just been messing around, and the HMR can take anywhere from 2-10 seconds, often not triggering anything at all and I have to refresh the browser. This is not a rare occurrence, and I'm not exaggerating. It's most of the time. I'm not sure why but it's just so dogshit, the DX is absolutely terrible from this alone. Vue/svelte reload near instantly, compile fast, and...

expo web uploadThing error

hello everyone. was trying out uploadthing for my expo project which i'm building for both native and web. when i use the useDocumentUploader, every works fine on mobile. on web i get an error where i was advised to report it, cause it's hindering me from successfully uploading a file. ``` UploadThingError: Something went wrong. Please report this to UploadThing. at Object.INTERNAL_DO_NOT_USE__fatalClientError (entry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.routerRoot=app&resolver.environment=client&transform.environment=client:338615:54) at entry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.routerRoot=app&resolver.environment=client&transform.environment=client:343246:69...

How to theme with Tailwind v4?

I've followed the setup instructions for tailwind v4. I am able to style the UploadButton and UploadDropzone containers like this: ``` <UploadDropzone className="..."...

Files uploaded, but client and server never reach onUploadComplete

My files are uploading successfully to UploadThing (I can access them in dashboard), but the loading spinner goes indefinitely on client. onUploadComplete is not being triggered on server or client, and onUploadError is not being triggered clientside either. I had everything working fine the other day on setup, not sure what I did to fuck up. No errors in log on client or server. Any help is appreciated, thanks! next: 15.2.3...

Openai integration

How does chatgpt and others chat apps do in the ui to display the canvas from the responses while streaming???

Error when using npm create t3-app@latest

I just got this error when using npm create t3-app@latest . and npm create t3-app@latest (name the folder myself) ...
No description

user data encryption

how do people usually do user data encryption? I would like to basically encrypt (or hash) everything users save in the database, is saving a decryption key in environment vars on vercel/netlify etc. good enough? Or are there other ways that might be more suitable? (this is data I need to decrypt in the front-end, not passwords or anything like that, just user generated content, think like notion notes)...

Setting up simple monorepo with 'shared' folder

Hi folks, thanks in advance for any help. I'm trying to set up a monorepo structure in which I have three components, each stored within their own folder: - 'backend' - 'frontend' ...

Significant slow performace (in dev) with create t3 app

I recently tried out the create t3 app. I am using neon, next-auth, prisma and app router. I did not change any of the initial code, only added some env. I deployed it to vercel, and simple posting and retrieving latest post will take at least 3-4 seconds. Any clarification on this will be much appreciated.

How to properly add Google Sign In to existing application that has email login implemented already?

Hi, In my app I already have a working login system for email + password sign in. Now I would like to add Google Sign in as well. I already managed to allow user sign in with google but I wonder how I can properly handle user creation in the database in regards to username....
Solution:
Hey! 👋 For Google Sign-In, you can't get a unique username directly from Google. Here's the deal: Make username optional: In your User database model, allow the username field to be null at first. Also add a googleId field (unique) to link accounts. A isCompletedProfile flag is helpful too. Google Sign-In: Frontend handles the Google login flow. Backend verifies the token from Google (super important!), then gets the user's Google ID (sub) and email....

Fetching User Session Data on the Client Side with useSession

Hello! I'm having trouble retrieving the logged-in user's information on the client side. I need the user information for my component, but how should I fetch the current user's session data? Here is my code: ```ts...