Replies: 1 comment
-
have you tried: this will make sure that multiple calls to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
We're using websockets to push updates (e.g., new messages, conversations) to our React app. Each update currently triggers an invalidate query, causing a database refetch. When updates come in rapid succession, this leads to excessive database queries.
Is there a way to delay or batch these invalidations, so we only invalidate after the stream of events pauses? Any suggestions appreciated!
Beta Was this translation helpful? Give feedback.
All reactions