Reduce server file refresh latency
This commit is contained in:
@@ -631,7 +631,7 @@ function ServerFilesSection({ instance, session, operations }: ServerFilesSectio
|
||||
|
||||
useEffect(() => {
|
||||
if (workspace.status !== "ready" || !directoryKey || list.status !== "ready" || list.data.state !== "pending") return;
|
||||
const timer = window.setInterval(() => void loadList({ silent: true }), 2000);
|
||||
const timer = window.setInterval(() => void loadList({ silent: true }), 300);
|
||||
return () => window.clearInterval(timer);
|
||||
}, [directoryKey, list, loadList, workspace.status]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user