Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add missing parameters to both useSelectedLayoutSegment & useSelectedLayoutSegments #53602

Merged
merged 9 commits into from Aug 24, 2023
Expand Up @@ -39,10 +39,10 @@ export default function ExampleClientComponent() {
## Parameters

```tsx
const segment = useSelectedLayoutSegment()
const segment = useSelectedLayoutSegment(parallelRoutesKey?: string)
```

`useSelectedLayoutSegment` does not take any parameters.
`useSelectedLayoutSegment` accepts *optionally* a [`parallelRoutesKey`](docs/app/building-your-application/routing/parallel-routes#useselectedlayoutsegments), which allows you to read the active segment within that slot.
leerob marked this conversation as resolved.
Show resolved Hide resolved

## Returns

Expand Down
Expand Up @@ -51,10 +51,11 @@ export default function ExampleClientComponent() {
## Parameters

```tsx
const segments = useSelectedLayoutSegments()
const segments = useSelectedLayoutSegments(parallelRoutesKey?: string)
```

`useSelectedLayoutSegments` does not take any parameters.
`useSelectedLayoutSegments` accepts *optionally* a [`parallelRoutesKey`](docs/app/building-your-application/routing/parallel-routes#useselectedlayoutsegments), which allows you to read the active segment within that slot.
leerob marked this conversation as resolved.
Show resolved Hide resolved
s.

## Returns

Expand Down