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
This file is used both on the server and the client.
@@ -42,8 +49,13 @@ Arguments:
42
49
-`name` - Route name
43
50
-`pattern` - Route pattern (like express, see [path-to-regexp](https://github.com/pillarjs/path-to-regexp))
44
51
-`page` - Page inside `./pages` to be rendered
52
+
-`object` - Contains properties `name`, `pattern` and `page` in addition to `params` that is an object with extra properties that will be added to the `query` object. It can be used to set default value or to attach new properties.
53
+
54
+
The page component receives the matched URL parameters merged into `query`. The `query` will receive:
45
55
46
-
The page component receives the matched URL parameters merged into `query`
56
+
- Matched properties on the pattern
57
+
- Extra properties specified in the `params` object
58
+
- A `routeName` property with the value of the `name` param.
0 commit comments