Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: discard stale integration instance loads (#8213)

[._.]/ Adam Eivy259dc6c5cb45
diff --git a/client/src/components/integrations/IntegrationInstancesPage.jsx b/client/src/components/integrations/IntegrationInstancesPage.jsx
index a4c1e705af..ea0fddc6ef 100644
--- a/client/src/components/integrations/IntegrationInstancesPage.jsx
+++ b/client/src/components/integrations/IntegrationInstancesPage.jsx
@@ -24,13 +24,20 @@ export default function IntegrationInstancesPage({
const [customFields, setCustomFields] = useState({});
useEffect(() => {
+ let active = true;
api.get(`${apiBase}/instances`, { silent: true })
- .then(response => setInstances(response.instances || {}))
+ .then(response => {
+ if (active) setInstances(response.instances || {});
+ })
.catch(error => {
+ if (!active) return;
console.error(`❌ Failed to load ${title} instances: ${error.message}`);
toast.error(`Failed to load ${title} instances: ${error.message}`);
})
- .finally(() => setLoading(false));
+ .finally(() => {
+ if (active) setLoading(false);
+ });
+ return () => { active = false; };
}, [apiBase, title]);
const resetForm = () => {