👁️
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

suppress hydration warning for dark/light prop

+3 -2
+3 -1
src/routes/__root.tsx
··· 57 57 58 58 function RootDocument({ children }: { children: React.ReactNode }) { 59 59 return ( 60 - <html lang="en"> 60 + // suppressHydrationWarning: blocking script adds theme class before hydration, 61 + // so className will differ between server (no class) and client (has dark/light) 62 + <html lang="en" suppressHydrationWarning> 61 63 <head> 62 64 <HeadContent /> 63 65 {/* Blocking script to set theme class before React hydrates - prevents flash */}
-1
src/routes/card/$id.tsx
··· 8 8 import { isScryfallId } from "@/lib/scryfall-types"; 9 9 10 10 export const Route = createFileRoute("/card/$id")({ 11 - ssr: false, 12 11 component: CardDetailPage, 13 12 }); 14 13