-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
I have a use case where I would like to pass an additional parameter when calling an endpoint, where I do not want this additional parameter to be cached. The first parameter, args, would still be serialized as the cache key as normal.
Would it be possible to provide an additional field to pass some additional data when calling an endpoint via a hook/initiate? My use case is for calling a query endpoint with initiate.
Perhaps an additional optional parameter after options? Something likeextraArgs
, noCacheArgs
, or nonCacheableArgs
. I don't know if it makes sense have it on the options parameter, https://redux-toolkit.js.org/rtk-query/api/created-api/endpoints#initiate, but that would work too.
alvaro1553, tomeronen, Anatoool and Jacksonishere
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request