I have a sealed interface for loading states (Loading, Error, data class Success(stuff)). Success is the only data class. In one place, I just want to check if the state is Success and do something. how can I check that?
Steve
10/31/2024, 10:53 PM
Nevermind, I was doing a live data, and wasn't comparing to the value of the live data
j
Joffrey
10/31/2024, 10:54 PM
For the general question for posterity, you can do