mirror of
https://github.com/grp06/openclaw-studio.git
synced 2026-08-14 00:47:51 +00:00
fix: wrap root page in Suspense to fix production builds (#91)
Fixes production builds by adding a Suspense boundary for the useSearchParams() consumer. Co-authored-by: iminierai-aig <iminierai@gmail.com>
This commit is contained in:
+6
-5
@@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||
import { Suspense, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||
import { usePathname, useRouter, useSearchParams } from "next/navigation";
|
||||
import { AgentChatPanel } from "@/features/agents/components/AgentChatPanel";
|
||||
import { AgentCreateModal } from "@/features/agents/components/AgentCreateModal";
|
||||
@@ -1837,11 +1837,12 @@ const AgentStudioPage = () => {
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<AgentStoreProvider>
|
||||
<AgentStudioPage />
|
||||
</AgentStoreProvider>
|
||||
<Suspense>
|
||||
<AgentStoreProvider>
|
||||
<AgentStudioPage />
|
||||
</AgentStoreProvider>
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user