mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-01 00:06:38 +00:00
♻️ refetch approval count every 30s
This commit is contained in:
@@ -383,6 +383,12 @@ export const approvalQueries = {
|
|||||||
signal
|
signal
|
||||||
});
|
});
|
||||||
return res.data.data.count;
|
return res.data.data.count;
|
||||||
|
},
|
||||||
|
refetchInterval: (query) => {
|
||||||
|
if (query.state.data) {
|
||||||
|
return durationToMs(30, "seconds");
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user