fixes, improvmeents

This commit is contained in:
yohlo
2025-10-10 23:44:27 -05:00
parent f96f92c7c9
commit 4b534c86cd
5 changed files with 99 additions and 6 deletions

View File

@@ -32,7 +32,10 @@ const Pullable: React.FC<PullableProps> = ({ children, scrollPosition, onScrollP
if (refresh.length > 0) {
// TODO: Remove this after testing - or does the delay help ux?
await new Promise(resolve => setTimeout(resolve, 1000));
await queryClient.refetchQueries({ queryKey: refresh, exact: true});
refresh.forEach(async (queryKey) => {
const keyArray = Array.isArray(queryKey) ? queryKey : [queryKey];
await queryClient.refetchQueries({ queryKey: keyArray, exact: true });
});
}
setIsRefreshing(false);
}, [refresh]);