Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/client-component-route/page.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import { useState, useEffect } from 'react' | ||
|
||
import style from './style.module.css' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import { useState, useEffect } from 'react' | ||
|
||
import styles from './style.module.css' | ||
|
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/client-with-errors/get-server-side-props/page.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
// export function getServerSideProps() { { props: {} } } | ||
|
||
export default function Page() { | ||
|
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/client-with-errors/get-static-props/page.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
// export function getStaticProps() { return { props: {} }} | ||
|
||
export default function Page() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import './client-layout.css' | ||
|
||
import Foo from './foo' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import './client-page.css' | ||
|
||
export default function Page() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import './style.css' | ||
import styles from './style.module.css' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
export default function Page() { | ||
return null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import styles from './client-comp.module.css' | ||
|
||
import { useEffect, useState } from 'react' | ||
|
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/dashboard/index/dynamic-imports/dynamic.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/dashboard/index/dynamic-imports/react-lazy.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import { useState, lazy } from 'react' | ||
|
||
const Lazy = lazy(() => import('../text-lazy.client.js')) | ||
|
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/dashboard/index/text-dynamic.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import { useState } from 'react' | ||
import styles from './dynamic.module.css' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import styles from './lazy.module.css' | ||
|
||
export default function LazyComponent() { | ||
|
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/error/clientcomponent/error.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
export default function ErrorBoundary({ error, reset }) { | ||
return ( | ||
<> | ||
|
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/error/clientcomponent/page.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import { useState } from 'react' | ||
|
||
export default function Page() { | ||
|
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/error/ssr-error-client-component/page.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
export default function Page() { | ||
throw new Error('Error during SSR') | ||
} |
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/hooks/use-cookies/client/page.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import { useCookies } from 'next/dist/client/components/hooks-server' | ||
|
||
export default function Page() { | ||
|
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/hooks/use-headers/client/page.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import { useHeaders } from 'next/dist/client/components/hooks-server' | ||
|
||
export default function Page() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/hooks/use-preview-data/client/page.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import { useRouter } from 'next/dist/client/components/hooks-client' | ||
|
||
export default function Page() { | ||
|
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/hooks/use-router/sub-page/page.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
export default function Page() { | ||
return <h1 id="router-sub-page">hello from /hooks/use-router/sub-page</h1> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import { useRouter, withRouter } from 'next/router' | ||
import IsNull from './IsNull' | ||
|
||
|
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/param-and-query/[slug]/page.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
export default function Page({ params, searchParams }) { | ||
return ( | ||
<h1 | ||
|
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/should-not-serve-client/page.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
export default function ShouldNotServeClientDotJs(props) { | ||
return ( | ||
<> | ||
|
2 changes: 2 additions & 0 deletions
2
test/e2e/app-dir/app/app/template/clientcomponent/template.client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'client' | ||
|
||
import { useState } from 'react' | ||
|
||
export default function Template({ children }) { | ||
|