feat(web): add file tree manual refresh + 5s polling + focus refetch
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -100,6 +100,8 @@ export function useFileList(
|
||||
queryKey: fileListQueryKey(workspaceId ?? "", queryPath),
|
||||
queryFn: () => fetchFileList(workspaceId!, queryPath),
|
||||
enabled: !!workspaceId && enabled,
|
||||
refetchInterval: 5_000,
|
||||
refetchOnWindowFocus: true,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user