-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useWaitForTransactionReceipt - isLoading is true even after the transaction is completed. #4235
Comments
Hello @Venkateshb2877. Please provide a minimal reproduction using StackBlitz, TypeScript Playground (for type issues), or a separate minimal GitHub repository. Minimal reproductions are required as they save us a lot of time reproducing your config/environment and issue, and allow us to help you faster. Once a minimal reproduction is added, a team member will confirm it works, then re-open the issue. |
On Form submit this function is called.
Below code is the blockchain function for approval Once the blockchain is approved, backed api call is dispatched.
Sometimes when the approval function takes longer time to complete the transaction, isLoading is frozen as true and isConfirmed(i.e isSuccess) as false. Even after the completion of transaction, isSuccess remain as false and api call is not made. This issue arises only when the transaction takes more time to complete. When it is fast, it works as expected. Please find the TypeScript Playground Below. |
I'm also encountering this issue now. |
This issue has been locked since it has been closed for more than 14 days. If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Wagmi version. If you have any questions or comments you can create a new discussion thread. |
Check existing issues
Describe the bug
This issue occurs only when the transaction is taking more time to execute. Whereas when the transaction is instant it is fine as expected.
Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
What Wagmi package(s) are you using?
wagmi
Wagmi Package(s) Version(s)
2.12.0
Viem Version
2.x
TypeScript Version
5
Anything else?
No response
The text was updated successfully, but these errors were encountered: