From 42e5746c2f18c86e02dbdd06d7c7bf2b721bb9de Mon Sep 17 00:00:00 2001 From: Oleg Date: Mon, 19 Aug 2019 22:36:18 +0300 Subject: [PATCH] Update docs for controller and identity Fixed typos in a sentence about `start`. Also updated the information about `stop` call, looks like it will be called with last controller identity value, not return value of params --- doc/frontend/controllers.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/frontend/controllers.md b/doc/frontend/controllers.md index 4ee8de14..13dcef08 100644 --- a/doc/frontend/controllers.md +++ b/doc/frontend/controllers.md @@ -18,9 +18,9 @@ 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 controller -is initialized by calling `start` is called with the identity value. -When you exit that route, `stop` is called with the return value of `params.` +declaration, 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. If you navigate to the same route with different match, identity gets resolved again. If the identity changes from the previous value, controller