From 214c044026351aa9ef2f0737b9cb1a6c2c10dc3d Mon Sep 17 00:00:00 2001 From: Jiwoo JEONG <63336958+jiwooIncludeJeong@users.noreply.github.com> Date: Thu, 8 Jun 2023 19:27:27 +0900 Subject: [PATCH] fix: add missed / at useSelectedLayoutSegment --- .../01-routing/02-pages-and-layouts.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/02-app/01-building-your-application/01-routing/02-pages-and-layouts.mdx b/docs/02-app/01-building-your-application/01-routing/02-pages-and-layouts.mdx index 3d0adde3f5aa0..3ba1c5c16d7e9 100644 --- a/docs/02-app/01-building-your-application/01-routing/02-pages-and-layouts.mdx +++ b/docs/02-app/01-building-your-application/01-routing/02-pages-and-layouts.mdx @@ -112,7 +112,7 @@ export default function DashboardLayout({ > - Layouts are [Server Components](/docs/getting-started/react-essentials) by default but can be set to a [Client Component](/docs/getting-started/react-essentials#client-components). > - Layouts can fetch data. View the [Data Fetching](/docs/app/building-your-application/data-fetching) section for more information. > - Passing data between a parent layout and its children is not possible. However, you can fetch the same data in a route more than once, and React will [automatically dedupe the requests](/docs/app/building-your-application/data-fetching#automatic-fetch-request-deduping) without affecting performance. -> - Layouts do not have access to the current route segment(s). To access route segments, you can use [`useSelectedLayoutSegment`](docs/app/api-reference/functions/use-selected-layout-segment) or [`useSelectedLayoutSegments`](/docs/app/api-reference/functions/use-selected-layout-segments) in a Client Component. +> - Layouts do not have access to the current route segment(s). To access route segments, you can use [`useSelectedLayoutSegment`](/docs/app/api-reference/functions/use-selected-layout-segment) or [`useSelectedLayoutSegments`](/docs/app/api-reference/functions/use-selected-layout-segments) in a Client Component. > - `.js`, `.jsx`, or `.tsx` file extensions can be used for Layouts. > - A `layout.js` and `page.js` file can be defined in the same folder. The layout will wrap the page.