-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trpc #56
Comments
I'll have to read more, not immediately sure what the advantage is since Nuxt is all Typescript & |
Im a bit unclear as well, maybe brian can clarify |
Hey mate, I'm coming from next trying to see how things fit together. I just took a look at the template, and the current way of doing things looks clean. No need to shoehorn in TRPC if it is not prevalent in the nuxt/vue ecosystem but it's very useful and part of the other stacks I use. So maybe just take a look. What are you using for your validations? Have you considered Zod? Or is there some better way to use nuxt? It's another great tool that helps me a lot with forms and other things. I find it very useful. let me know. Here is the implementation of trpc I was looking at before. I started from here as they have a nextjs t3/turbo repo setup and a nuxt one. So was just comparing the way they do things there are a lot of similarities. This is very much my current stack at the moment. Fan of working in monorepos, but it depends on the scope of the project and if you need a mobile version etc. What are you currently using for UI? Have you used shadcn at all? That is my current go-to as well. I see there is a Nuxt version; I'm gonna start experimenting tomorrow and getting familiar with Vue. But it all looks pretty similar.. Should be quick. https://github.com/devinschumacher/supastarter-nextjs |
|
Marking this as cancelled - seems the consensus is we do not need trpc. |
My research into trpc over nuxt's useFetch is this: Benefits of tRPC instead of just useFetch:
Key TakeawaysType Safety with useFetch:
Type Safety with tRPC:
TLDR"If you value the end-to-end type safety and streamlined API development that tRPC provides, it's worthwhile to incorporate it into your Nuxt project alongside useFetch." |
Trpc is the shit. I would recommend It.
I don't know enough about nuxt to make this assertion confidently. But from
my experience in full stack web deb, it is unmatched when it comes to
implementing crud in any application,,
…On Sat, Oct 19, 2024 at 10:31 PM Devin Schumacher ***@***.***> wrote:
My research into trpc over nuxt's useFetch is this:
Benefits of tRPC instead of just useFetch:
- Reduced Runtime Errors: Type safety catches mismatches and errors
during development rather than at runtime.
- Improved Collaboration: Developers can work confidently on different
parts of the app, knowing that shared types prevent miscommunication.
- Faster Development: Auto-generated types and APIs reduce the amount
of boilerplate code and speed up feature development.
- Easier Maintenance: Changes to data models are automatically
reflected throughout the codebase, simplifying updates and refactoring.
Key Takeaways Type Safety with useFetch:
- Limited to Client Side: Any type annotations are only checked on the
client and do not guarantee that the server's response matches.
- Manual Maintenance: Requires you to manually ensure that client-side
types match server responses.
Type Safety with tRPC:
- End-to-End Enforcement: Types are shared between client and server,
providing true end-to-end type safety.
- Automatic Updates: Changes on the server automatically propagate to
the client, reducing maintenance overhead.
TLDR
"If you value the end-to-end type safety and streamlined API development
that tRPC provides, it's worthwhile to incorporate it into your Nuxt
project alongside useFetch."
@dawaltconley <https://github.com/dawaltconley>
—
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2Y2TP3O3TFQFHEPBDHSZQTZ4IYJ3AVCNFSM6AAAAABPCUYKUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRTG42DQNBQG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
moving this to another milestone since we dont really know what to use it for yet anyways |
my buddy (developer) Brian recommends we use https://trpc.io/docs
let's look into it @dawaltconley
The text was updated successfully, but these errors were encountered: