Best way to sync queries across tabs?
Right now, I am using BroadcastChannel API in a Provider using Context which listens to messages and also provides a send message function I use to broadcast changes.
Just wondering if there is a clear/better way for this? It has become somewhat of a maintenance nightmare to keep up.
AFAIK there is no official Tanstack Query support for this? please correct me if I am wrong. Would be great to implement something that directly injects into Query Client that automatically broadcasts/listens to invalidate query calls.
Thanks in advance.
Just wondering if there is a clear/better way for this? It has become somewhat of a maintenance nightmare to keep up.
AFAIK there is no official Tanstack Query support for this? please correct me if I am wrong. Would be great to implement something that directly injects into Query Client that automatically broadcasts/listens to invalidate query calls.
Thanks in advance.