Skip to content

Commit 7d15c84

Browse files
committed
Handle bail out of idle queries
1 parent 65f8676 commit 7d15c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/query.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ export class Query<
614614
isFetching: false,
615615
isInvalidated: false,
616616
isPaused: false,
617-
status: 'success',
617+
status: typeof state.data === 'undefined' ? 'idle' : 'success',
618618
}
619619
case 'error':
620620
const error = action.error as unknown

0 commit comments

Comments
 (0)