Skip to content

Commit 88422ad

Browse files
authored
fix: use "primitive" instead of "hook" (#1008)
1 parent 3f4e6d7 commit 88422ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/routes/solid-router/concepts/dynamic-routes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ render(
2727

2828
The colon (`:`) indicates that `id` can be any string.
2929
Once a URL matches the pattern, the `User` component will be shown.
30-
When using dynamic segments, the values can be accessed via the [`useParams`](/solid-router/reference/primitives/use-params) hook within the component.
30+
When using dynamic segments, the values can be accessed via the [`useParams`](/solid-router/reference/primitives/use-params) primitive within the component.
3131

3232
<Callout title="Note on Animation/Transitions">
3333
Routes that share the same path match will be treated as the same route.

src/routes/solid-start/building-your-application/routing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ For example, `/users/1` and `/users/2` are both valid routes and rather than def
174174
|-- [id].tsx
175175
```
176176

177-
For example, using `solid-router`, you could use the [`useParams`](/solid-router/reference/primitives/use-params) hook to match the dynamic segment:
177+
For example, using `solid-router`, you could use the [`useParams`](/solid-router/reference/primitives/use-params) primitive to match the dynamic segment:
178178

179179
```tsx title="routes/users/[id].tsx"
180180
import { useParams } from "@solidjs/router";

0 commit comments

Comments
 (0)