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

T3 stack with Vue, when?

Are there plans to make something like T3 but for Vue?

Job for T3 setup with i18n

is anyone could be help to fix a T3 setup with Translation (next-i18next or equivalent)?

Help with prisma nested create

I have this prisma model ``` model Membership { userId String groupId String User User @relation(fields: [userId], references: [id])...

Stack suggestion - DB platform for a larger number of smaller projects

Hey y'all, love planetscale but it's limitation on number of branches means that even if I have a very small app that has very low usage, I can't really do another on PS. Any good options for things that scale well for a larger number of smaller projects? Happy to pay for usage, doesn't need to be free, but ideally has a pay as you go sort of model.

Synchronizing TS Objects with functions attached?

I have TS Objects with functions (as part of a browser game). Is there a simple way or library to take an object, strip it of its functions, send over the data, and rebuild it into a full object with functions attached. My current best idea is to use a sort of (de-)serialization middleware between Redux/Zustand and liveblocks....

Data Fetching best practices

Wondering what sort of best practices for data fetching I should follow (especially patterns for this stack specifically)? For example, my home page has looks like pictured. Should the server state i grab on page load just grab everything i need (using CSR)? So just one big trpc call that gets me groups, user info, and everything else I might need? Should user data just rely on session data instead, and then fetch group info in isolation? Just a little confused how to move forward once the app is configured...

What was the cloud DB with SQL via HTML hype recently?

I know something was mentioned on one of Theo's streams but I can't remember.

🤔 Error validating serverEnv

I just wired up next-auth, and while trying to access my new auth routes, i get an invalid environment variables error. oddly enough when I run printenv all of the variables seem to be populated. Furthermore, when i log out the _serverEnv variable the validation seems to have passed. ...

Any good librarys for parallaxs

Looking for a good library to make parallax's easy.

Can we use Laravel with next?

I have a couple of questions - Is it reasonable to use Laravel and Next together? - if yes, should we run both of them together and interact with each other on the same server? - If u have experience with next can please tell me if most of the time how is the backend is handled? (Next is full-stack so is it necessary to include the backend)...

What happened to the `enabled` option in useQuery?

I recently noticed that in create-t3-appp v10 I no longer have the boolean enabled option available. ```jsx const { data: prefs } = trpc.useQuery(['prefs.all'], {
enabled: !!_id, ...

trpc giving me a hooks error?

when a button is pressed im getting a hooks error, i think because im using this function as a consequence of the button press. What is the correct way to call this?

how to see changes on .env file when .env is in .gitignore

I'd still like to see the changes to my .env periodically and was wondering if anyone has any advice around this

Can I save more user data with NextAuth than simply what my provider gives?

I want to save a username as well as the slug for the user's homepage, but can't figure out how to do this. Things break when I add these to my model, telling me Invalid p.user.create() invocation in at the user creation invocation

How to update and upsert on particular columns on Prisma

On Prisma, I have a session model as follows ``` export type sessionsCreateInput = { id?: bigint | number hash: string...

When is concurrency an issue?

At what point/scale does concurrency become an issue in a web server? I followed Primeagen's videos comparing Rust, Go, and Node and I take his point that Rust is more performant. But at what scale does this matter? ...

Can we use tRPC api for any other platforms like Native languages?

Can we use tRPC api for any other platforms like Native languages? [I would like to use it for React Native]

Trpc giving a type error?

Im trying to get a trpc endpoint to update my db and i keep getting this error.

isSuccess correct value to check response in trpc?

Hello I am wondering if isSuccess is the proper value which I should check once I call my mutation. Sometimes the function inside the isSuccess condition does not run, even if my mutation was successful. Any idea how to improve that? ...