Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions modal-login/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ export const metadata: Metadata = {
description: "Modal sign in for Gensyn Testnet",
};

export default function RootLayout({
export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
// Persist state across pages
// https://accountkit.alchemy.com/react/ssr#persisting-the-account-state
// Wait a headers
const headerData = await headers();

const initialState = cookieToInitialState(
config,
headers().get("cookie") ?? undefined,
headerData.get("cookie") ?? undefined,
);

return (
Expand Down