diff --git a/packages/stack/src/components/elements/maybe-full-page.tsx b/packages/stack/src/components/elements/maybe-full-page.tsx index 99ff7c5ee..864a40bdc 100644 --- a/packages/stack/src/components/elements/maybe-full-page.tsx +++ b/packages/stack/src/components/elements/maybe-full-page.tsx @@ -1,7 +1,8 @@ "use client"; import { Container } from "@stackframe/stack-ui"; -import React, { useEffect, useId } from "react"; +import React, { useId } from "react"; +import { SsrScript } from "./ssr-layout-effect"; export function MaybeFullPage({ children, @@ -23,13 +24,6 @@ export function MaybeFullPage({ el.style.minHeight = \`calc(100vh - \${offset}px)\`; })(${JSON.stringify([id])})`; - useEffect(() => { - // TODO fix workaround: React has a bug where it doesn't run the script on the first CSR render if SSR has been skipped due to suspense - // As a workaround, we run the script in the