Sean Proctor
05/01/2022, 8:50 PMArkadii Ivanov
05/01/2022, 8:52 PMSean Proctor
05/01/2022, 8:57 PMArkadii Ivanov
05/01/2022, 9:04 PMrouter(childfactory = { ... }
function. This is the place where you can supply absolutely any dependency - a database, a network client, or a callback. Take a look at the examples.Sean Proctor
05/01/2022, 9:06 PMSean Proctor
05/01/2022, 9:47 PMArkadii Ivanov
05/01/2022, 10:05 PMSean Proctor
05/01/2022, 10:06 PMArkadii Ivanov
05/01/2022, 10:12 PMSean Proctor
05/02/2022, 10:31 PMSean Proctor
05/02/2022, 10:36 PMSean Proctor
05/02/2022, 10:40 PMArkadii Ivanov
05/02/2022, 10:53 PMSean Proctor
05/03/2022, 8:42 AMSean Proctor
05/03/2022, 8:45 AMArkadii Ivanov
05/03/2022, 8:48 AMSean Proctor
05/03/2022, 8:50 AMArkadii Ivanov
05/03/2022, 8:50 AMonFinished: (Data) -> Unit
to one component. Then in the root supply this callback. When called, pop the screen from the stack, and call the another component's method with the result.Sean Proctor
05/03/2022, 8:56 AMSean Proctor
05/03/2022, 3:21 PMArkadii Ivanov
05/03/2022, 3:52 PMonComplete
callback - router.pop { <the rest of the logic> }
. More information can be found in the [docs](https://arkivanov.github.io/Decompose/router/navigation/#the-navigation-process).Sean Proctor
05/03/2022, 3:53 PMSean Proctor
05/03/2022, 3:53 PM