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

Next.js Limitations

Ok so I'm considering next.js for my next project for that juicy SEO and page load time. I'm concerned I might want to do something I normally do in react and next.js won't be capable and I'll have to scrap it and rebuild with a normal stack. My question is, can you do everything in nextjs that you can do in react? Or since it's rendered on the server, once it goes to the client it no longer behaves like a react app (re rendering with state change)?...

Want to build SaaS course builder app T3 stack or Astro with islands ?

I want to build a SaaS mainly focused around course creation, like teach:able but with way better UX, I need SEO for the actual course viewing part, but for the creation part I want a really smooth UX so everything will be CSR, enough said i think you understand what i'm trying to do, the question is : i'm stuck going with T3 stack, or Astro + Islands components for the dashboard and CSR part of the course creator ?

React native do's and don'ts.

I'm thinking about starting a project in react native with the following tech: - typescript - NativeWind (rep of tailwind) Can anyone guide me as to how i can go about developing this in a proper manner?...

how can i make the query more proffesional

so basically i am tying to get all posts with a particular type of post but same route also serve as the route for search so this complicated things i want to be able to all the post with the particular post type provided and still use same route to filter the post...

Why is my rails app faster than t3?

for serving up some basic json it seems to be at least double in speed there are large differences in infra, im more just curious which parts specifically make t3 app slower for a basic json endpoint basically using the same DB instance i retrieve a user info endpoint...

How to create static pages using T3 stack?

Title, for now I need to create only SOME static pages, but I have no idea how to set them up with next, what I need to add to make them static? Thanks!

Next Auth does not fire callback and set session hook?

I added a Credentials provider in additional to my Discord provider (which worked fine), if I try to sign up I get a success value but the session does not update Currently my nextauth file looks like this ```ts export const authOptions: NextAuthOptions = {...

Good courses recommendations

I have been granted a budget for any courses I would like to take and I need to spend it this year. Do you guys have any good recommendations that I could look at? For sure good extensive TypeScript one would be great...

Two Columns Grid Design

hey anyone knows how to achieve this design using css grid? I've been trying all day to figure out how to recreate this kind of 2 columns staircase but without success. Thank you...

file.json.gz - SyntaxError unexpected end of data at line 1 column 1 of the JSON data

Hi guys, first I want to apologize if this question is extremely stupid but I have no clue how would I even begin to solve this issue. Anyway, I am fetching a file export from The Movie DB. http://files.tmdb.org/p/exports/movie_ids_11_22_2022.json.gz If you open this file you will see that its a json with objects that are not seperated with commas, therefor I can not "extract" stuff out of them. ...

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