tRPCttRPC
Powered by
patrickP
tRPC•3y ago•
5 replies
patrick

cache craziness?

can someone sanity check something for me? i'm using sst + trpc + drizzleorm + aws + rds + postgres on the server, and i guess trpc + tanstack-query on the client side... when i do mutations, to say delete something from a list and go optimistically update the client state, via useUtils setData etc... everything is fine... then a few seconds later the browser does a request (tanstack query?) and gets OLD data back from "disk cache" and updates the view to how it was before my mutation! then a few seconds later it updates again with the correct data... i'm having a hard time figuring out which cacheing layer is screwing up... has anyone ever seen such behavior?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Clearing Cache
ZephZZeph / ❓-help
4y ago
Nextjs 16 use cache
VilianVVilian / ❓-help
3mo ago
trpc + unstable_cache (Next)
LedrubLLedrub / ❓-help
2y ago
Don't understand cache
VengeanceVVengeance / ❓-help
2y ago