fix: refetch on focus

This commit is contained in:
Fredrik Burmester
2024-11-27 09:57:03 +01:00
parent e6ea5d13d4
commit d113729b6f
3 changed files with 9 additions and 6 deletions

View File

@@ -32,6 +32,9 @@ export const ScrollingCollectionList: React.FC<Props> = ({
queryKey,
queryFn,
staleTime: 0,
refetchOnMount: true,
refetchOnWindowFocus: true,
refetchOnReconnect: true,
});
if (disabled || !title) return null;