You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routes/solid-start/building-your-application/routing.mdx
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -177,9 +177,9 @@ They are defined using square brackets with `...` before the label for the route
177
177
|-- [...post].tsx
178
178
```
179
179
180
-
The value of the catch-all route will be an array of strings, where each string is a segment of the URL path that matched the catch-all route.
181
-
For example, with the route `[...post]`, the value of `post` will be a property on the `params` object that is returned by the `useParams` hook.
182
-
It will be a string with the value of the dynamic segment.
180
+
A catch-all route will have one parameter which is a forward-slash delimited string of all the URL segments after the last valid segment.
181
+
For example, with the route `[..post]` and a URL path of `/post/foo` the `params` object returned from the `useParams` primitive will have a `post` property with the value of `foo`.
182
+
For a URL path of `/post/foo/baz` it will be `foo/baz`.
0 commit comments