VERY IMPORTANT: This utility is currently in an experimental stage. This means that breaking changes will happen in minor AND patch releases. Use at your own risk. If you choose to rely on this in production in an experimental stage, please lock your version to a patch-level version to avoid unexpected breakages.
broadcastQueryClient is a utility for broadcasting and syncing the state of your queryClient between browser tabs/windows with the same origin.
This utility comes packaged with
react-query and is available under the
broadcastQueryClient function, and pass it your
QueryClient instance, and optionally, set a
Pass this function a
QueryClient instance and optionally, a
An object of options:
The default options are: