Sharing QueryClient Across Multiple Apps
Hi folks
I wanted to ask about this new experimental tool, broadcast channel to sync queryClient between multiple tabs and Apps.
I have a use-case where in my page I use multiple smaller react applications and those react applications are using react-query fetching and storing a data from the same endpoint.
Can I be using SessionStorage to hydrate the data initially and then use broadcast channel to keep the data in sync between all these queryClients?
I think there is going to be an issue with handling the conflicting the data. is there a way to mitigate this issue?
Thanks
1 Reply
subsequent-cyanOP•2y ago
Bumping this one so if anyone had an idea about different solutions here would love to hear
Thanks