We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b208e63 commit 907a948Copy full SHA for 907a948
packages/toolkit/src/query/core/buildSlice.ts
@@ -37,7 +37,6 @@ import {
37
copyWithStructuralSharing,
38
} from '../utils'
39
import type { ApiContext } from '../apiTypes'
40
-import { defaultMemoize } from 'reselect'
41
42
function updateQuerySubstateIfExists(
43
state: QueryState<any>,
@@ -145,7 +144,9 @@ export function buildSlice({
145
144
updateQuerySubstateIfExists(draft, arg.queryCacheKey, (substate) => {
146
substate.status = QueryStatus.pending
147
substate.requestId = meta.requestId
148
- substate.originalArgs = arg.originalArgs
+ if (arg.originalArgs !== undefined) {
+ substate.originalArgs = arg.originalArgs
149
+ }
150
substate.startedTimeStamp = meta.startedTimeStamp
151
})
152
0 commit comments