Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(desktop): add custom domain query placeholder data

Richie McIlroy7cb2323bbd51
diff --git a/apps/desktop/src/utils/queries.ts b/apps/desktop/src/utils/queries.ts
index a822606cc..613b33cbf 100644
--- a/apps/desktop/src/utils/queries.ts
+++ b/apps/desktop/src/utils/queries.ts
@@ -345,6 +345,10 @@ export function createCustomDomainQuery() {
return { custom_domain: null, domain_verified: null };
}
},
+ // This is read during the editor's initial render, under its top-level
+ // Suspense boundary. Without placeholder data, a slow/offline network
+ // keeps the query pending and the whole editor stuck on the skeleton.
+ placeholderData: { custom_domain: null, domain_verified: null },
refetchOnMount: true,
refetchOnWindowFocus: true,
}));