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
11 changed files
with
105 additions
and
78 deletions.
There are no files selected for viewing
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
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
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
1 change: 1 addition & 0 deletions
1
...gration/react-streaming-and-server-components/app/components/client-exports-all.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './client-exports' |
20 changes: 20 additions & 0 deletions
20
test/integration/react-streaming-and-server-components/app/components/client-exports-all.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export * from './client-exports' | ||
|
||
// TODO: add exports all test case in pages | ||
/** | ||
import * as all from '../components/client-exports-all' | ||
import * as allClient from '../components/client-exports-all.client' | ||
export default function Page() { | ||
const { a, b, c, d, e } = all | ||
const { a: ac, b: bc, c: cc, d: dc, e: ec } = allClient | ||
return ( | ||
<div> | ||
<div id='server'>{a}{b}{c}{d}{e[0]}</div> | ||
<div id='client'>{ac}{bc}{cc}{dc}{ec[0]}</div> | ||
</div> | ||
) | ||
} | ||
*/ |
10 changes: 10 additions & 0 deletions
10
test/integration/react-streaming-and-server-components/app/components/client-exports.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const a = 'a' | ||
const b = 'b' | ||
const _c = 'c' | ||
const _d = 'd' | ||
const _e = 'e' | ||
const _eArr = [_e] | ||
|
||
export const c = _c | ||
export { a, b } | ||
export { _d as d, _eArr as e } |
25 changes: 25 additions & 0 deletions
25
.../integration/react-streaming-and-server-components/app/pages/client-exports-all.server.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import * as all from '../components/client-exports-all' | ||
import * as allClient from '../components/client-exports-all.client' | ||
|
||
export default function Page() { | ||
const { a, b, c, d, e } = all | ||
const { a: ac, b: bc, c: cc, d: dc, e: ec } = allClient | ||
return ( | ||
<div> | ||
<div id="server"> | ||
{a} | ||
{b} | ||
{c} | ||
{d} | ||
{e[0]} | ||
</div> | ||
<div id="client"> | ||
{ac} | ||
{bc} | ||
{cc} | ||
{dc} | ||
{ec[0]} | ||
</div> | ||
</div> | ||
) | ||
} |
13 changes: 13 additions & 0 deletions
13
test/integration/react-streaming-and-server-components/app/pages/client-exports.server.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { a, b, c, d, e } from '../components/client-exports' | ||
|
||
export default function Page() { | ||
return ( | ||
<div> | ||
{a} | ||
{b} | ||
{c} | ||
{d} | ||
{e[0]} | ||
</div> | ||
) | ||
} |
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