Caching RTK Query queries with some fields from redux store #5091
-
Im using custom queryFn, not base queries. Is there any possibility to put in caching string some field from store generally? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, the cache key is always based directly on the query arg value. Otherwise, if something in the store changed, we'd have to also handle possible changes to values that came from the store. |
Beta Was this translation helpful? Give feedback.
No, the cache key is always based directly on the query arg value. Otherwise, if something in the store changed, we'd have to also handle possible changes to values that came from the store.