Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web): suppress hydration warning for Chrome extension html attr

Richie McIlroye81a168432b4
diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx
index d6602ef70..9cca89e58 100644
--- a/apps/web/app/layout.tsx
+++ b/apps/web/app/layout.tsx
@@ -74,7 +74,10 @@ export const metadata: Metadata = {
export default function RootLayout({ children }: PropsWithChildren) {
return (
- <html className={defaultFont.className} lang="en">
+ // suppressHydrationWarning: the Cap Chrome extension stamps
+ // data-cap-chrome-extension-installed on <html> at document_idle,
+ // which can land before hydration finishes.
+ <html className={defaultFont.className} lang="en" suppressHydrationWarning>
<head>
<link
rel="apple-touch-icon"