tRPCttRPC
Powered by
ZenZ
tRPC•3y ago•
2 replies
Zen

Caching(?) previous data until query returns new data

when I update my useQuery inputs with new filters it instantly sets the data to
undefined
undefined
while the query
isLoading
isLoading
.

Is there a way to keep the previous data there until the new data returns from the server? Currently there's big flashes in the UI between applications of the filters, as my data length drops to effectively zero then bounced back up again when the new data loads
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

keep previous data
shikishikichangchangSshikishikichangchang / ❓-help
2y ago
useQuery caching data
НиткаННитка / ❓-help
2y ago
TRPC waiting until the query has completed
rustclanRrustclan / ❓-help
4y ago
change data from query
UpsidedUUpsided / ❓-help
2y ago