Skip to content
Source
Sign inSign up
TanStack/query

Anyone get this to share cache state in a Chrome Extension's Popup, Background Script, and Content Script? #8471

Send to my agent
Closedthianphat(GitHub profile, opens in a new tab) opened this issue 1 comment

Discussed in https://github.com/TanStack/query/discussions/7323

Originally posted by **thianphat** April 22, 2024 Per the title. I've tried everything to get this to work. Right now I'm serializing to chrome.storage.local using the createAsyncStoragePersister and using the same queryClient in the Content Script and Popup. But the cache is still separated, although chrome.storage.local is accessible by all 3 parts of the extension. Screenshot 2024-04-22 at 10 45 06 AM Screenshot 2024-04-22 at 10 44 18 AM Screenshot 2024-04-22 at 10 43 31 AM
  1. if you already have an open discussion, please don’t file an additional issue.

  2. TkDodo closed this

  3. TkDodo added labelsduplicate

Sign in to join this conversation.