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

is it ok to store to use a user unique id as a Session_id in LocalStorage ?

I am working on a chat application I wanted to send online friends to the current user what i plan to do is to fetch the user friends from the database I have a socket server everytime the user logs in an object will be added to the map the object contains user info such as the username , email, etc.. I am thinking of having the UniqueId of each user object in the map as the key the reason is i believe it will be easier and faster to map online friends to the friends array returned to the...

Updating a different table based on changes from a settings table

How does one implement this in a way that won't crash a db? For example, a different table (T1) references a central settings(T2) table, and when that setting changes, ALL rows in T1 must update with that new setting To make it more complicated, T1 has rows which use the setting for calculations, so those values will have to be recalculated as well ----...

Running multiple projects from one database (Drizzle)

I'm pretty new to backend concepts and drizzle. I have created one project already using T3 stack + drizzle and have the database on Supabase. It's deployed and working as expected but I am now looking at starting another project. I am aware that the following bit of table creation code effectively allows me to run multiple projects on one database as all tables for that project are prefixed:...

hello bro i'm perusing this boot-camp https://fullstackopen.com/en/ i've just intermediate education

hello bro i'm perusing this boot-camp https://fullstackopen.com/en/ i've just intermediate education but i'm learning web dev from last two plus years as part time from various online courses but i failed to get even single interview call i decided to get certification in know basics so i made a plan to get certs like https://fullstackopen.com/en/ and from cs50 https://fullstackopen.com/en/ from and for learning core cs concepts i choose https://www.scaler.com/topics/courses/ to learn dbms oo...

Is 1500 messages enough to get me through studying for 5 midterms

I usually get chatgpt pro when i have exams to help me study and thought if i can save the money and pay 8$ here but i am not sure if the 1500 messages would be enough for me (Engineering Student) and i would gladly get another subscription if i hit the limit just thought i would ask first

Modal Getting Cut Off on iOS Safari but not on small desktop screen sizes

I'm working on a modal component for the project card's on a website I'm making for a friend. The modal pops up and looks fine on all browsers on desktop, even when simulating mobile screen sizes. However on iOS I'm noticing the top and bottom of the popup get cutoff, and I can't scroll. Not really sure if there's some webkit specific styling I need to add?
No description

"url" parameter is valid but upstream response is invalid

I keep getting this when I use the Image from next js. However when I pass loader={(src) => {src}} it works, for whatever reason I can't seem to figure out what is going on, anyone have any ideas???? I get: 500 Internal Server Error ...

Advice please

Hi guys, I'm a software engineer from Morocco, and I recently started my first job at a startup that leverages AI to build a large SaaS platform aimed at helping companies with their recruitment process. The software is not live yet, so I can't share a demo with you. I joined this company as a broke student with barely a penny, but now I'm doing a bit better for my age. Since it's a startup, they don't pay me very well, and the product is still in development. We expect to launch in 1 to 2 months. (By the way, I still have one year left before I graduate.)...

Local LLM for Code

Hey all, I am planning on getting a 5090 for gaming but would love if this could double as a tool for running LLMs locally. In this fast changing LLM world, can anybody recommend some local models that would pair nicely with Roo Code or similar VS Code extensions?...

turborepo with nextjs and nestjs

Is it achievable? a turborepo with - web -> t3 stack or nextjs - api (complete backend) -> nestjs...

T3 Chat API

does t3 chat have an API?

t3.chat blocked by Bitdefender Endpoint Security Tools

"t3.chat/api/server-version?dpl=LATEST contains malware of type Cloud Virus"
Solution:
Still working today, marking it solved in case it makes a difference
No description

UploadThing callback issue (status -1)

Hi, I'm having the following problem. In the audit logs I see this for every upload (isDev: false). ```{...

Does anyone know how people animate their app usage like that?

I do not believe that they just use obs 😭

Use cache not caching properly

i am using next canary with dynamic io stuff but when i use "use cache" but my redis and db get hit here is my repo and an example i am not accessing cookies or headers in the cached function https://github.com/darjss/ecom-dashboard https://github.com/darjss/ecom-dashboard/blob/main/src%2Fserver%2Factions%2Fauth.ts...

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.
Next