From 468ee4e4b69c6f6b45480f255018607ea1b7d8a5 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Tue, 25 Jun 2024 21:44:16 +0200 Subject: [PATCH] Repro --- test/e2e/app-dir/hello-world/app/page.tsx | 4 +++- test/e2e/app-dir/hello-world/app/page2/page.tsx | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 test/e2e/app-dir/hello-world/app/page2/page.tsx diff --git a/test/e2e/app-dir/hello-world/app/page.tsx b/test/e2e/app-dir/hello-world/app/page.tsx index ff7159d9149fe..ea69ec8b2a0ba 100644 --- a/test/e2e/app-dir/hello-world/app/page.tsx +++ b/test/e2e/app-dir/hello-world/app/page.tsx @@ -1,3 +1,5 @@ +import Link from 'next/link' + export default function Page() { - return

hello world

+ return CSR to client page with named React imports } diff --git a/test/e2e/app-dir/hello-world/app/page2/page.tsx b/test/e2e/app-dir/hello-world/app/page2/page.tsx new file mode 100644 index 0000000000000..a13b39470174b --- /dev/null +++ b/test/e2e/app-dir/hello-world/app/page2/page.tsx @@ -0,0 +1,7 @@ +'use client' +import * as React from 'react' + +export default function Page() { + React.useEffect(() => {}) + return <> +}