Skip to content

Refactor SavedStateFlow to be more testable

Choose a tag to compare

@plusmobileapps plusmobileapps released this 02 Jan 03:52
253be9a
  • Created SavedStateFlowHandle to make mocking of a SavedStateFlow simpler without needing to mess around with LiveData
  • Added units tests to the sample MainViewModel to showcase the testability in this refactor.