Support AbortSignal
from the app layer
#1239
Replies: 2 comments
-
I would really like to see this implemented A use case for this is React Hooks (e.g. wagmi's): each action performed in a Related issue in ethers.js: ethers-io/ethers.js#4122 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sounds like this will be implemented via #1701 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be good if it was possible to pass an
AbortSignal
to anything that may trigger an rpc request (e.g.simulateContract
,readContract
,estimateContractGas
). I recognize how that would require some custom handling for batch / multicall but it should be doable.AbortSignal
s are already supported internally at the transport layer but they are not exposed to the app layer. Hence it's currently not possible to cancel requests from the app layer.Beta Was this translation helpful? Give feedback.
All reactions