RTK Query: Query Overview #3010
-
Hi, I'd like to know how you guys would handle that: I have a search query, which accepts a search term. And in one component consuming this queries, I'd like to have an overview about all the search queries made. The only solution I found right now is to map over all the queries in the redux store and filter by |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
That would be the primary way to do it. Another option might be to have another slice listen to that query endpoint's actions using |
Beta Was this translation helpful? Give feedback.
That would be the primary way to do it.
Another option might be to have another slice listen to that query endpoint's actions using
api.endpoints.someQueryEndpoint.matchFulfilled
, and collect the cache key values over in the slice for later display.