When observing a child of Actionable, the developer could forget to call state.onAction {} to actually manage the one-time events sent from the ViewModel.
We can write a checker on observeUiState that finds its sole parameter and checks that .onAction has indeed been called, and it not, it will show an error on the function itself.
When observing a child of
Actionable, the developer could forget to callstate.onAction {}to actually manage the one-time events sent from the ViewModel.We can write a checker on
observeUiStatethat finds its sole parameter and checks that.onActionhas indeed been called, and it not, it will show an error on the function itself.