Closed Alex009 closed 4 years ago
To support case of immediate dispatches after EventsDispatcher pass to ViewModel:
class EnterPhoneScreen( ) : WidgetScreen<Args.Empty>() { override fun createContentWidget(): Widget<WidgetSize.Const<SizeSpec.AsParent, SizeSpec.AsParent>> { val viewModel = getViewModel { createViewModel(createEventsDispatcher()).apply { start() } // HERE RUN START, where event call immediate } viewModel.eventsDispatcher.listen(this, this) // HERE SUBSCRIPTION // ... } }
merged
To support case of immediate dispatches after EventsDispatcher pass to ViewModel: