I know that one of the solutions to handle orientation change is to use ViewModel to hold the data as it outlives the activity.
However, I was wondering, can't we achieve the same thing if we create a static variable in the class to hold the same data?
Why would we go down the ViewModel path?
Thanks