mirror of
https://github.com/metosin/reitit.git
synced 2026-01-15 02:39:51 +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
|
||||
|
||||
When you navigate to a route that has a controller, controller identity
|
||||
is first resolved by calling `identity` function, or by using `parameters`
|
||||
declaration, or if neither is set, the identity is `nil`. Next, the controller
|
||||
is first resolved by using `parameters` declaration, or by calling `identity` function,
|
||||
or if neither is set, the identity is `nil`. Next, the controller
|
||||
is initialized by calling `start` with the controller identity value.
|
||||
When you exit that route, `stop` is called with the last controller identity value.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue