Skip to content

Commit 7ca6897

Browse files
committed
update docs for hook registration methods
1 parent 8ba68b6 commit 7ca6897

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/en/api/router-instance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
Add global navigation guards. See [Navigation Guards](../advanced/navigation-guards.md).
3030

31+
In 2.5.0+ all three methods return a function that removes the registered guard/hook.
3132

3233
- **router.push(location, onComplete?, onAbort?)**
3334
- **router.replace(location, onComplete?, onAbort?)**

0 commit comments

Comments
 (0)