Join Slack
Hi, is it necessary to have atleast 1 state for a viewmodel?
# orbit-mvi
h
Hitesh Chopra
03/19/2022, 1:18 PM
Hi, is it necessary to have atleast 1 state for a viewmodel?
a
appmattus
03/19/2022, 7:45 PM
If you only have side effects you can use
Unit
as the state. Likewise if you only have state and no side effects you can use
Unit
or
Nothing
for side effect
🙏 2
12
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by