File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -71,19 +71,19 @@ Creates an `href` to a route.
71
71
this .context .router .makeHref (' user' , {userId: 123 }); // "users/123"
72
72
```
73
73
74
- ### ` getPath ()`
74
+ ### ` getCurrentPath ()`
75
75
76
76
Returns the current URL path, including query string.
77
77
78
- ### ` getPathname ()`
78
+ ### ` getCurrentPathname ()`
79
79
80
80
Returns the current URL path without the query string.
81
81
82
- ### ` getParams ()`
82
+ ### ` getCurrentParams ()`
83
83
84
84
Returns a hash of the currently active URL params.
85
85
86
- ### ` getQuery ()`
86
+ ### ` getCurrentQuery ()`
87
87
88
88
Returns a hash of the currently active query params.
89
89
@@ -92,7 +92,7 @@ Returns a hash of the currently active query params.
92
92
Returns ` true ` if a route, params, and query are active, ` false `
93
93
otherwise.
94
94
95
- ### ` getRoutes ()`
95
+ ### ` getCurrentRoutes ()`
96
96
97
97
Returns an array of the currently active routes, in nesting order.
98
98
@@ -108,7 +108,7 @@ Often you'll want access to params and query:
108
108
// handler
109
109
var User = React .createClass ({
110
110
render : function () {
111
- var name = this .context .router .getParams ().name ;
111
+ var name = this .context .router .getCurrentParams ().name ;
112
112
return (
113
113
< div>
114
114
< h1> {name}< / h1>
You can’t perform that action at this time.
0 commit comments