Skip to content

Instantly share code, notes, and snippets.

@mattmook
Created July 14, 2021 10:40
Show Gist options
  • Save mattmook/10d01389b07cb3f9d74a7dd7819515f4 to your computer and use it in GitHub Desktop.
Save mattmook/10d01389b07cb3f9d74a7dd7819515f4 to your computer and use it in GitHub Desktop.
The state of MVI on Android - MVIKotlin - onViewCreated
fun onViewCreated(view: PostListView) {
binder?.stop()
binder = bind(lifecycle, BinderLifecycleMode.CREATE_DESTROY) {
store.states bindTo view
store.labels bindTo view::sideEffect
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment