Skip to content

Commit 3d47bbe

Browse files
author
Lenz Weber
committed
reduce size
1 parent 19d725b commit 3d47bbe

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/toolkit/src/query/react/buildHooks.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,7 @@ export function buildHooks<Definitions extends EndpointDefinitions>({
542542
endpointName,
543543
})
544544
)
545-
return {
546-
isFetching: false,
547-
...currentState,
548-
}
545+
lastResult = undefined
549546
}
550547

551548
// data is the last known good request result we have tracked - or if none has been tracked yet the last good result for the current args

0 commit comments

Comments
 (0)