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: docs/API.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -523,12 +523,13 @@ Stringifies the query into the pathname, using the router's config.
523
523
##### `createHref(pathname, query)`
524
524
Creates a URL, using the router's config. For example, it will add `#/` in front of the `pathname` for hash history.
525
525
526
-
##### `isActive(pathname, query)`
526
+
##### `isActive(pathname, query, indexOnly)`
527
527
Returns `true` or `false` depending on if the current path is active. Will be true for every route in the route branch matched by the `pathname` (child route is active, therefore parent is too).
528
528
529
529
###### arguments
530
530
-`pathname` - the full URL with or without the query.
531
531
-`query` - an object that will be stringified by the router.
0 commit comments