-
-
Couldn't load subscription status.
- Fork 1.2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
onCacheEntryAdded is not called when fixedCacheKey is specified for mutation (getCacheKey doesn't handle that case)
const [fetchList, list] = rtkApi.useListMutation({
fixedCacheKey: 'FIXED_CACHE_KEY',
});
...
list: builder.mutation({
query: () => ({
method: "POST",
url: `/some-url`,
}),
async onCacheEntryAdded(arg, { cacheDataLoaded }) {
console.log("log me please");
await cacheDataLoaded;
console.log("log again");
})
})
NSVEGUR
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working