Tanstack Query SharedWorker Persister

Tanstack Query is a popular library for managing browser API requests and their associated state. One useful feature it provides is a query cache, preventing unnecessary network requests for the same resource. By using the @sjpnz/query-shared-worker-persister package, it is possible to share this cache across multiple tabs and windows. The sharing of a cache is possible due to a SharedWorker that…