Wanted to quickly go over why I added TRPC back to my NextJS project, even with App Router and Server Actions. Its still the goat for React Apps. repo I showed off in this vid: github.com/bmdavis419/weights-ai
Пікірлер: 31
@samuelm2934Ай бұрын
Bro is getting hired based on how often he had rewritten his projects
@devagrАй бұрын
lol love seeing your trajectory from t3 -> sveltekit -> RSCs -> t3
@bmdavis419Ай бұрын
Right now its actually 2 stacks: Sveltekit & RSCs + t3 Using both of them for real stuff, I still kinda (although less and less) prefer SvelteKit, RSCs are just so goated for the AI stuff
@kirsoАй бұрын
@@bmdavis419 why less and less?
@bmdavis419Ай бұрын
@@kirso Because the AI sdk + RSC is just so fucking cool lol and I do like react components, although I like svelte load functions and stuff so idk the actual answer is im using both an will continue to do so
@kirsoАй бұрын
@@bmdavis419 Makes sense, thanks for the answer! I think AI SDK is also available for Sveltekit? They also have a template but yeah, no server components, is it a large limitation though?
@bmdavis419Ай бұрын
@@kirso Yea its there for Svelte (and I still need to officially try it lol), but the way it works with Next is just sublime, the RSCs make so much sense for the model
@jjriseАй бұрын
I’ve literally come full circle back to tRPC too. It’s just so good and checks all the boxes that it’s hard to not use it any more.
@nevillebremАй бұрын
glad you're back!
@aurorasofieАй бұрын
Hi! What’s your reasoning for picking react query instead of awaiting server-only functions and suspending for loading states? You wouldn’t need effects for that.
@bmdavis419Ай бұрын
This file illustrates it pretty well: github.com/bmdavis419/weights-ai/blob/main/src/components/schedule/ManageSchedule.tsx
@maddadaАй бұрын
Would love a tutorial about a simple app built using this way. Server actions are still not there from my experience..
@bmdavis419Ай бұрын
Start here for sure: create.t3.gg/, I'll definitely make an AI SDK tutorial once mine is really publicly launched!
@SR-ti6jjАй бұрын
t4 stack is still undefeated
@asadmehboob1300Ай бұрын
T4?
@JakobRossner-qj1woАй бұрын
What is T4?
@scott_itall8638Ай бұрын
In waiting for svelte 5, I have learnt Laravel and it’s amazing lol.
@justine_chang39Ай бұрын
yes! tRPC is really good
@jugurtha292Ай бұрын
Im in a similar situation to you when you swapped from Go/Ts to just Ts. Could you talk about why you found it more appealing to move to fullstack ts instead of fullstack Go.
@bmdavis419Ай бұрын
This vid breaks it down pretty well: kzbin.info/www/bejne/rJ_OqoCZrJWHkKc, TLDR: its too much boilerplate for a small team and TS works fine lol
@jugurtha292Ай бұрын
@@bmdavis419 That's the thing, i can't give up react. Shadcn and remix are just too good to give up, But Go has a great lsp, linter, stlib and great packages. I think i will try building fullstack projects with both when i have time and see what works for me.
@user-tb4ig7qh9bАй бұрын
Next-Safe-Action
@yashrajjaiswal9941Ай бұрын
t3 stack and trpc are just amazing ,until you need to setup web sockets 😆 the documentation isn't that great. Has anyone tried it??
@bmdavis419Ай бұрын
idk if they are even possible in a serverless env, u probably have to make a seperate server (Go would be fire here) or use a service
@developerpranavАй бұрын
I've preferred trpc over server actions for another big reason - waterfall in server actions because of concurrency limits: kzbin.info/www/bejne/eXW9mGajlrFsp5I This was a huge deal for my application, and just gave up on server actions after that except for some non crucial things because they are just so easy to setup and use.