File tree Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ use this.
8
8
Instance Methods
9
9
----------------
10
10
11
+ ### ` getPath() `
12
+
13
+ Returns the current URL path, including query string.
14
+
15
+ ### ` getPathname() `
16
+
17
+ Returns the current URL path without the query string.
18
+
11
19
### ` getParams() `
12
20
13
21
Returns a hash of the currently active URL params.
@@ -21,13 +29,9 @@ Returns a hash of the currently active query params.
21
29
Returns ` true ` if a route, params, and query are active, ` false `
22
30
otherwise.
23
31
24
- ### ` getPath() `
25
-
26
- Returns the current path.
27
-
28
32
### ` getRoutes() `
29
33
30
- Returns the active route tree .
34
+ Returns an array of the currently active routes, in nesting order .
31
35
32
36
Examples
33
37
--------
Original file line number Diff line number Diff line change @@ -55,12 +55,17 @@ for you to render.
55
55
56
56
An object containing the matched state.
57
57
58
- ##### ` state.routes `
58
+ #### ` state.path `
59
59
60
- An array of the matched [ routes] [ 1 ] . Very useful for fetching data before
61
- rendering.
60
+ The current URL path with query string.
62
61
63
- See also: [ Route] [ 1 ] .
62
+ #### ` state.action `
63
+
64
+ The action that lead to the route change.
65
+
66
+ #### ` state.pathname `
67
+
68
+ The current URL path without the query string.
64
69
65
70
##### ` state.params `
66
71
@@ -70,13 +75,12 @@ The active params in the location match.
70
75
71
76
The active query in the location match.
72
77
73
- #### ` state.path `
74
-
75
- The path matched.
78
+ ##### ` state.routes `
76
79
77
- #### ` state.action `
80
+ An array of the matched [ routes] [ 1 ] . Very useful for fetching data before
81
+ rendering.
78
82
79
- The action that lead to the route change .
83
+ See also: [ Route ] [ 1 ] .
80
84
81
85
Examples
82
86
--------
You can’t perform that action at this time.
0 commit comments