Closed eh-am closed 2 years ago
After https://github.com/pyroscope-io/pyroscope/pull/927 we ended up getting rid of Request Canceling, we have to get it back:
services
AbortController
dispatch
.abort
We have to do this for most (all) requests.
Here is a proof-of-concept on request cancellation feature, please review #1099
After https://github.com/pyroscope-io/pyroscope/pull/927 we ended up getting rid of Request Canceling, we have to get it back:
services
to take anAbortController
(Like this https://github.com/pyroscope-io/pyroscope/blob/main/webapp/javascript/services/appNames.ts#L9, but making it mandatory)dispatch
is called) to use the promise result, and call.abort
in the callback (example https://redux-toolkit.js.org/api/createAsyncThunk#canceling-while-running)We have to do this for most (all) requests.