Referencing same cached data with multiple queryKey
s
#7695
-
Not sure if this is an anti-pattern, but I have two separate useQuery hooks that perform get requests, which will ultimately be capable of returning the exact same data. Basically I want to be able to set a Some further context:
Hopefully this is clear; thanks for any guidance in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
take a look at seeing the cache: https://tkdodo.eu/blog/seeding-the-query-cache#seeding-details-from-lists |
Beta Was this translation helpful? Give feedback.
take a look at seeing the cache: https://tkdodo.eu/blog/seeding-the-query-cache#seeding-details-from-lists