mirror of
https://github.com/metosin/reitit.git
synced 2026-02-20 17:29:08 +00:00
Fix documentation about identity
Updated the order of identity resolving according to current source.
This commit is contained in:
parent
42e5746c2f
commit
15395f8239
1 changed files with 2 additions and 2 deletions
|
|
@ -17,8 +17,8 @@ controller identity
|
||||||
* `start` & `stop` functions, which are called with controller identity
|
* `start` & `stop` functions, which are called with controller identity
|
||||||
|
|
||||||
When you navigate to a route that has a controller, controller identity
|
When you navigate to a route that has a controller, controller identity
|
||||||
is first resolved by calling `identity` function, or by using `parameters`
|
is first resolved by using `parameters` declaration, or by calling `identity` function,
|
||||||
declaration, or if neither is set, the identity is `nil`. Next, the controller
|
or if neither is set, the identity is `nil`. Next, the controller
|
||||||
is initialized by calling `start` with the controller identity value.
|
is initialized by calling `start` with the controller identity value.
|
||||||
When you exit that route, `stop` is called with the last controller identity value.
|
When you exit that route, `stop` is called with the last controller identity value.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue