Skip to content

Commit f3861c2

Browse files
committed
fix(query-core): add reject callback to .then() in tryResolveSync
1 parent 7a6733f commit f3861c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query-core/src/thenable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function tryResolveSync(promise: Promise<unknown> | Thenable<unknown>) {
9898
.then((result) => {
9999
data = result
100100
return result
101-
})
101+
}, noop)
102102
// .catch can be unavailable on certain kinds of thenable's
103103
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
104104
?.catch(noop)

0 commit comments

Comments
 (0)