Skip to content

Commit 5e3cd46

Browse files
authored
fix(query-core): correct error handling in tryResolveSync function (#9206)
1 parent 9c6fb06 commit 5e3cd46

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)