From 7c94e84f13dc8b07a5efa21a6775262828dd15d1 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 28 Sep 2025 00:31:03 +0000 Subject: [PATCH] Seed demo data globally via Layout and Admin cgen-3b21c0fa437a4a7793174c129695f249 --- client/components/Layout.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/components/Layout.tsx b/client/components/Layout.tsx index 38c8db7b..90313eab 100644 --- a/client/components/Layout.tsx +++ b/client/components/Layout.tsx @@ -12,6 +12,8 @@ import { } from "@/components/ui/dropdown-menu"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { User, Settings, LogOut, Bell } from "lucide-react"; +import { useEffect } from "react"; +import { ensureDemoSeed } from "@/lib/demo-feed"; interface LayoutProps { children: React.ReactNode; @@ -41,6 +43,8 @@ export default function Layout({ children }: LayoutProps) { window.scrollTo({ top: 0, behavior: "smooth" }); }; + useEffect(() => { try { ensureDemoSeed(); } catch {} }, []); + return (