Skip to content

Commit

Permalink
Make with-server-action test page dynamic for now
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Oct 23, 2024
1 parent 5f138cc commit 53d1faf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/e2e/app-dir/use-cache/app/with-server-action/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { connection } from 'next/server'

export default async function DynamicLayout({
children,
}: {
children: React.ReactNode
}) {
// TODO: This is a workaround for Turbopack. Figure out why this fails during
// prerendering with:
// TypeError: Cannot read properties of undefined (reading 'Form')
await connection()

return children
}

0 comments on commit 53d1faf

Please sign in to comment.