You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 usingquery.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 asgetTasks
uses a fixed value inserializeQueryArgs
.taskId
?updateSubscriptionOptions
?The text was updated successfully, but these errors were encountered: