We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f2e8aa commit e5a9962Copy full SHA for e5a9962
packages/toolkit/src/query/react/buildHooks.ts
@@ -687,12 +687,6 @@ export function buildHooks<Definitions extends EndpointDefinitions>({
687
688
const hasData = data !== undefined
689
690
- // error is the last known error we have tracked - or if none has been tracked yet the last errored result for the current args
691
- let error = currentState.isError ? currentState.error : lastResult?.error
692
- if (error === undefined) error = currentState.error
693
-
694
- const hasError = error !== undefined
695
696
// isFetching = true any time a request is in flight
697
const isFetching = currentState.isLoading
698
// isLoading = true only when loading while no data is present yet (initial load with no data in the cache)
0 commit comments