djcmurphy
TTCTheo's Typesafe Cult
•Created by kevinka on 5/6/2023 in #questions
Library recommendation for Authentication on React?
nextauth is oss and you control DB, clerk is paid for with other features(emails, pasword reset,all the stuff you would expect), iron session is raw cookie storage on server
19 replies
TTCTheo's Typesafe Cult
•Created by kevinka on 5/6/2023 in #questions
Library recommendation for Authentication on React?
The other options come with social logins but you give up controls of the user DB
19 replies
TTCTheo's Typesafe Cult
•Created by kevinka on 5/6/2023 in #questions
Library recommendation for Authentication on React?
I use iron session because it is an app for businesses where HR makes accounts. No need for social logins.
19 replies
TTCTheo's Typesafe Cult
•Created by kevinka on 5/6/2023 in #questions
Library recommendation for Authentication on React?
19 replies
TTCTheo's Typesafe Cult
•Created by kevinka on 5/6/2023 in #questions
Library recommendation for Authentication on React?
next-auth is another option
19 replies
TTCTheo's Typesafe Cult
•Created by kevinka on 5/6/2023 in #questions
Library recommendation for Authentication on React?
emails and such for passwords etc
19 replies
TTCTheo's Typesafe Cult
•Created by kevinka on 5/6/2023 in #questions
Library recommendation for Authentication on React?
a lot of work if you just want a client login though
19 replies
TTCTheo's Typesafe Cult
•Created by kevinka on 5/6/2023 in #questions
Library recommendation for Authentication on React?
19 replies
TTCTheo's Typesafe Cult
•Created by kevinka on 5/6/2023 in #questions
Library recommendation for Authentication on React?
I use it in next with app directory and even trpc
19 replies
TTCTheo's Typesafe Cult
•Created by kevinka on 5/6/2023 in #questions
Library recommendation for Authentication on React?
If you don't want to do your own then Clerk is the new Auth kid in town.
Clerk.dev
If you want to roll your own then iron-session github will get you going. It uses a stateless cookie.
19 replies
TTCTheo's Typesafe Cult
•Created by ahmadaccino on 5/5/2023 in #questions
Tips/Tricks for large scale create-t3-turbo projects?
For clarity. It will scale to any size but at a certain size you may not be using the things that are it's selling points or will want to roll your own. But that's fine at it's core it's just a React framework with file based routing, you can do whatever. Or if you are a super nerd ditch react and learn leptos/rust
8 replies
TTCTheo's Typesafe Cult
•Created by Joshowaaah! on 5/5/2023 in #questions
Any good datepicker libraries?
Erm html5 datepicker https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date
It's pretty well maintained and I think it's feature complete at this point. 😜
7 replies
TTCTheo's Typesafe Cult
•Created by ahmadaccino on 5/5/2023 in #questions
Tips/Tricks for large scale create-t3-turbo projects?
I'm currently building a warehouse management app with T3app which is an extension /rewrite of the in production site that has a few hundred pages and over 100 database tables a lot with 6 digit row counts. Pretty small in the whole scheme of things but a decent amount where I had to think about this.
Ultimately I think it just boils down to how you like to manage your DB calls and if you need to micromanage server load. Having an express or whatever backed makes sense if you are concurrently developing native and web and need something agnostic. You could use T3app with an Express backend if you wanted or set up next api routes that the native app could hit But... The T3 experience is meant for speed, so you can get things done. It links the frontend and backend using trpc because it's fast to dev with. Doesn't mean you cant build an API with it or do enterprise scale things but the ideology is move quick.
I'd skip prisma though.
8 replies
TTCTheo's Typesafe Cult
•Created by Godspeed on 5/5/2023 in #questions
Using T3 for AI agents and similar products
T3 is just a way to create a next app but is optimised for a speedy dev process.
T3 is Next and Next is a React framework with a server. If you know Sveltekit then you can make a React App but react does have a particular way of doing things and might take some adjusting. 1 line in Svelte can be several in React. Next is mostly built to make frontend dev lives easier and T3 makes it easier to link frontend to the back with TRPC. So if you are making a site for users to enter prompts and you want a fast dev experience then go for it. Nothing about the server environment is any different from any other node server backend as far as I know.
You probably won't use half of next's features but it will do the job for sure. And honestly it's just worth learning.
3 replies
TTCTheo's Typesafe Cult
•Created by ahmadaccino on 5/5/2023 in #questions
Tips/Tricks for large scale create-t3-turbo projects?
When you say large scale do you mean in users or in functionality i.e. data driven app with lots of tables etc?
8 replies
TTCTheo's Typesafe Cult
•Created by Fantastic65 on 5/5/2023 in #questions
Updating Class sections based on a selected course
Basically react reads all hooks and calculates state etc for the site/app. As soon as any hook goes into a function or behind a condition it errors because it cant manage state without knowing all the hooks first. A bit weird but that's how it optimises stuff.
8 replies
TTCTheo's Typesafe Cult
•Created by Fantastic65 on 5/5/2023 in #questions
Updating Class sections based on a selected course
useQuery always needs to be in the root of a component. You can't nest hooks (which trpc calls are) inside functions.
Move the useQuery to the route and then do this ...
...getAlllsections.useQuery({courseId:courseId},{enabled:courseId})
The second parameter of usequery can take an object and one of the fiields in that is enabled. enabled means It wont fire until its value is true. You can wrap it like Boolean(courseId) if you need to.
Also you don't need to do {courseId:courseId} if they share the same name you can just do
...getAlllsections.useQuery({courseId},{enabled:courseId})
8 replies
TTCTheo's Typesafe Cult
•Created by Simvolick on 5/5/2023 in #questions
TailwindCss typescript error in config
Do you need this npm install -D @tailwindcss/typography?
2 replies
TTCTheo's Typesafe Cult
•Created by djcmurphy on 4/22/2023 in #questions
React nested setState (zod like) Library API and NPM publishing
gonna change the api closing
6 replies