T
TanStack13mo ago
fair-rose

UX best practices with useQuery invalidateQueries and delayed updates

We have a microservice architecture and one of the downsides is that if we grab information from two different sources and mutate one of these data types and onSuccess of the mutation invalidate both data sources. The invalidate requeries the data source before the change in one microservice has been communicated to and processed by the other microservice. Are there better practices than optimistic updates available for these situations.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?