Handing finishing coroutine executor #63
-
Is the any correct way to get know about finishing coroutine executor. For example, we have a some form and Save button. When user clicks Save button, we send intent to save this form on server side. Executor handles the intent and makes API call to server. After success response user is navigated to another page, on error user see error message. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I tried to implement in using callbacks My Store
Method from my component using Decompose library
|
Beta Was this translation helpful? Give feedback.
-
You can publish a Label from the Executor. Then you can observe labels somewhere and perform navigation. See https://arkivanov.github.io/MVIKotlin/store.html |
Beta Was this translation helpful? Give feedback.
-
@arkivanov Thanks you. So in my store interface I added sealed class Label
To executor method added label publishing
and handled in Decompose component
|
Beta Was this translation helpful? Give feedback.
You can publish a Label from the Executor. Then you can observe labels somewhere and perform navigation. See https://arkivanov.github.io/MVIKotlin/store.html