with nextjs what is the best way to architect your queries?
i have a nextjs front end with a nestjs backend with microservices.
when deployed i realized that there are a myriad of apicalls that are just jhappening because htey either exist, or because the query keeps rendering on the timer.
i understand i am still weak in my query approach, especially for an app that needs details on the front end.
but at least how do i handle the querying properly when i am creating and updating information?
2 Replies
rival-black•3mo ago
this is too vague of a question to answer, sorry
eastern-cyan•2mo ago
I found this to be an excellent resource for questions like this
https://tanstack.com/query/v4/docs/framework/react/community/tkdodos-blog
TkDodo's Blog | TanStack Query React Docs
TanStack Query maintainer has a series of blog posts about using and working with the library. Some articles show general best practices, but most have an opinionated point of view. An advanced introd...