I believe we should be able to instantiate a ViewModel by
viewModel = new ViewModel()
without any additional inputs. But currently the SendMessageViewModel takes in User currentUser, ChatChannel channel, SendMessageState state. We could refactor the code to remove these dependencies by obtaining these data from OutputData.
I believe we should be able to instantiate a ViewModel by
without any additional inputs. But currently the
SendMessageViewModeltakes inUser currentUser, ChatChannel channel, SendMessageState state. We could refactor the code to remove these dependencies by obtaining these data from OutputData.