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/Glossary.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,10 +66,10 @@ A *hash* is a string that represents the hash portion of the URL. It is synonymo
66
66
## LeaveHook
67
67
68
68
```js
69
-
type LeaveHook= () => any;
69
+
type LeaveHook= (prevState:RouterState) => any;
70
70
```
71
71
72
-
A *leave hook* is a user-defined function that is called when a route is about to be unmounted.
72
+
A *leave hook* is a user-defined function that is called when a route is about to be unmounted. It receives the previous [router state](#routerstate) as its first argument.
0 commit comments