You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following this article, I'm returning a promise in the onSuccess callback. Since the callback signature should return void, it cannot return a promise and causes the following ESLint error.
Promise-returning function provided to property where a void return was expected
Steps to reproduce
Return a promise from a within the onSuccess callback.
Expected behavior
I should be able to return a promise from within the onSuccess callback.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
OS: macOS
Browser: Chrome
Tanstack Query adapter
react-query
TanStack Query version
v5.35.5
TypeScript version
v5.4.5
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Following this article, I'm returning a promise in the
onSuccess
callback. Since the callback signature should returnvoid
, it cannot return a promise and causes the following ESLint error.Promise-returning function provided to property where a void return was expected
Steps to reproduce
Return a promise from a within the
onSuccess
callback.Expected behavior
I should be able to return a promise from within the
onSuccess
callback.How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Tanstack Query adapter
react-query
TanStack Query version
v5.35.5
TypeScript version
v5.4.5
Additional context
No response
The text was updated successfully, but these errors were encountered: