Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
332bf6d4
Unverified
Commit
332bf6d4
authored
Dec 27, 2023
by
Shahriar
Committed by
GitHub
Dec 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: remove incorrect async components in parallel routes docs (#59966)
Co-authored-by:
Lee Robinson
<
me@leerob.io
>
parent
2c811af2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
08-parallel-routes.mdx
...ilding-your-application/01-routing/08-parallel-routes.mdx
+4
-4
No files found.
docs/02-app/01-building-your-application/01-routing/08-parallel-routes.mdx
View file @
332bf6d4
...
...
@@ -122,7 +122,7 @@ Both [`useSelectedLayoutSegment`](/docs/app/api-reference/functions/use-selected
import { useSelectedLayoutSegment } from 'next/navigation'
export default
async
function Layout(props: {
export default function Layout(props: {
//...
auth: React.ReactNode
}) {
...
...
@@ -136,7 +136,7 @@ export default async function Layout(props: {
import { useSelectedLayoutSegment } from 'next/navigation'
export default
async
function Layout(props) {
export default function Layout(props) {
const loginSegments = useSelectedLayoutSegment('auth')
// ...
}
...
...
@@ -234,7 +234,7 @@ If a modal was initiated through client navigation, e.g. by using `<Link href="/
import { useRouter } from 'next/navigation'
import { Modal } from 'components/modal'
export default
async
function Login() {
export default function Login() {
const router = useRouter()
return (
<Modal>
...
...
@@ -251,7 +251,7 @@ export default async function Login() {
import { useRouter } from 'next/navigation'
import { Modal } from 'components/modal'
export default
async
function Login() {
export default function Login() {
const router = useRouter()
return (
<Modal>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment