It's impossible to cancel the httpsCallable call in response to some user event e.g. button click.
The proposed solution is to pass down the abort signal to the fetch invocation as described in MDN AbortSignal docs. The signal parameter could be a part of HttpsCallableOptions.
Describe your environment
Describe the problem
It's impossible to cancel the
httpsCallable
call in response to some user event e.g. button click. The proposed solution is to pass down the abort signal to thefetch
invocation as described in MDN AbortSignal docs. Thesignal
parameter could be a part ofHttpsCallableOptions
.Relevant Code: