Skip to content

Commit 26bed74

Browse files
committed
Update transition hook docs
1 parent acd7ced commit 26bed74

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/01 Route Configuration/0 Route.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,20 @@ created from the child route component. Please refer to the
124124
[overview][overview] since this is a very critical part of the router's
125125
design.
126126

127-
### `onEnter(nextState, router)`
127+
### `onEnter(nextState, transition)`
128128

129129
Called when a route is about to be entered. It provides the next router
130-
state and the router instance for cancelling/redirecting the transition.
130+
state and the [transition][Transition] instance for cancelling/redirecting.
131131

132-
### `onLeave(nextState, router)`
132+
### `onLeave(nextState, transition)`
133133

134134
Called when a route is about to be exited. It provides the next router
135-
state and the router instance for cancelling/redirecting the transition.
135+
state and the [transition][Transition] instance for cancelling/redirecting.
136136

137137
[overview]:#TODO
138138
[path-matching]:#TODO
139139
[ignoreScrollBehavior]:#TODO
140140
[instragram-example]:#TODO
141141
[history]:#TODO
142+
[Transition]:#TODO
142143

0 commit comments

Comments
 (0)