-
Notifications
You must be signed in to change notification settings - Fork 0
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
infodusha
committed
May 16, 2024
1 parent
cd9c559
commit bfcd873
Showing
5 changed files
with
51 additions
and
94 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
import { Comp } from "./Comp"; | ||
import { Comp as Comp2 } from "./Comp"; | ||
|
||
export const dynamic = 'force-dynamic'; | ||
|
||
export default async function Page() { | ||
// throw new Error("This is a Page error"); | ||
|
||
function renderTest() { | ||
throw new Error("This is a render method error"); | ||
// return <span>Should not be wrapped</span> | ||
// throw new Error("This is a render method error"); | ||
return <span>Should not be wrapped</span> | ||
} | ||
|
||
function ABC() { | ||
// throw new Error("This is a ABC error"); | ||
return <div>ABC</div> | ||
} | ||
|
||
return ( | ||
<div> | ||
<h1>Page</h1> | ||
<Comp /> | ||
<Comp2 /> | ||
{renderTest()} | ||
<ABC /> | ||
</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
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