tRPCttRPC
Powered by
zodiakZ
tRPC•3y ago•
1 reply
zodiak

What would be considered best practice for getting data and invalidating queries?

I have a really simple task management app (doing it to learn stuff). Tasks are grouped in projects and have tags.
I opted to load all projects, including the tasks and the tags on the tasks with a single query.
When I add a new task or a tag, what would be the recommended way to update the data?
- Invalidate the query to the big procedure and reload everything?
- Separate the loading the data into different queries?
- There is a way to invalidate only part of the big query?
- Something else?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

best practice for invalidating protected queries upon profile switch
jJj / ❓-help
12mo ago
Invalidating Queries
himHhim / ❓-help
3mo ago
Invalidating data in server components
Answer OverflowAAnswer Overflow / ❓-help
3y ago