Open
Description
I am polling on an api like below
const query = endpoints.getTasks.initiate(taskIds, { subscriptionOptions: { pollingInterval: 30 * 1000, skipPollingIfUnfocused: true, refetchOnFocus: true } })
taskIds
can change over time and for that I am using
query.abort(); query.updateSubscriptionOptions({ pollingInterval: 0 }); query.unsubscribe();
I am facing an issue here, when there is one query still in progress and taskIds
changes new queries are rejected as getTasks
uses a fixed value in serializeQueryArgs
.
- Is there a way to run the api using the last received
taskId
? - Is there any way to change the query parameter of of polling queries like
updateSubscriptionOptions
?