Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add template and error file types (#39808)
Co-authored-by: Jiachi Liu <inbox@huozhi.im>
- Loading branch information
1 parent
9ab5c01
commit a3a20dc
Showing
17 changed files
with
448 additions
and
93 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
7 changes: 7 additions & 0 deletions
7
packages/next/client/components/render-from-template-context.client.tsx
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,7 @@ | ||
import React, { useContext } from 'react' | ||
import { TemplateContext } from '../../shared/lib/app-router-context' | ||
|
||
export default function RenderFromTemplateContext(): JSX.Element { | ||
const children = useContext(TemplateContext) | ||
return <>{children}</> | ||
} |
Oops, something went wrong.