Created
July 14, 2021 10:40
-
-
Save mattmook/10d01389b07cb3f9d74a7dd7819515f4 to your computer and use it in GitHub Desktop.
The state of MVI on Android - MVIKotlin - onViewCreated
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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