Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Sep 29, 2022
1 parent f36c050 commit d672686
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 9 additions & 0 deletions test/e2e/app-dir/app-edge/app/app-edge/layout.tsx
@@ -0,0 +1,9 @@
'client'

import { useSelectedLayoutSegment } from 'next/dist/client/components/hooks-client'

export default function Layout({ children }: { children: React.ReactNode }) {
// useSelectedLayoutSegment should not be thrown
useSelectedLayoutSegment()
return children
}
7 changes: 0 additions & 7 deletions test/e2e/switchable-runtime/pages/app.js.txt

This file was deleted.

0 comments on commit d672686

Please sign in to comment.