Update API query to keep unused data for 0 seconds and modify triggerCheckStatus to not force a refresh during polling.
platform/bro-js/challenge-pl/pipeline/head There was a failure building this commit

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-11-04 11:23:06 +03:00
parent cde28b1dd8
commit 8f7eabc5c4
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -73,6 +73,7 @@ export const api = createApi({
}),
transformResponse: (response: ApiResponse<QueueStatus>) => response.body,
providesTags: (_result, _error, arg) => [{ type: 'Queue', id: arg }],
keepUnusedDataFor: 0,
}),
getUserStats: builder.query<UserStats, string>({
query: (userId) => ({