Feb 2, 2024
For the .idle state, I doubt that it would be used, since .loading essentially means that the app is yet to get the data being fetched.
Also for generic ViewState, I wouldn’t want to include it, because there is a reason for this:
I was just giving the basic of how we could utilize enum to manage a view state, so something like generic would just complicate things further. I might as well create a whole new article just for that alone.
Anyway, thank you for the suggestion, it is also a good idea to manage view state.