Skip to content

Commit f71015d

Browse files
committed
Merge pull request #976 from hellojwilde/patch-1
Correct method names in RouterContext docs
2 parents 1b2293b + 1489c6d commit f71015d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/api/RouterContext.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ Creates an `href` to a route.
7171
this.context.router.makeHref('user', {userId: 123}); // "users/123"
7272
```
7373

74-
### `getPath()`
74+
### `getCurrentPath()`
7575

7676
Returns the current URL path, including query string.
7777

78-
### `getPathname()`
78+
### `getCurrentPathname()`
7979

8080
Returns the current URL path without the query string.
8181

82-
### `getParams()`
82+
### `getCurrentParams()`
8383

8484
Returns a hash of the currently active URL params.
8585

86-
### `getQuery()`
86+
### `getCurrentQuery()`
8787

8888
Returns a hash of the currently active query params.
8989

@@ -92,7 +92,7 @@ Returns a hash of the currently active query params.
9292
Returns `true` if a route, params, and query are active, `false`
9393
otherwise.
9494

95-
### `getRoutes()`
95+
### `getCurrentRoutes()`
9696

9797
Returns an array of the currently active routes, in nesting order.
9898

@@ -108,7 +108,7 @@ Often you'll want access to params and query:
108108
// handler
109109
var User = React.createClass({
110110
render: function () {
111-
var name = this.context.router.getParams().name;
111+
var name = this.context.router.getCurrentParams().name;
112112
return (
113113
<div>
114114
<h1>{name}</h1>

0 commit comments

Comments
 (0)