I was testing android listAdapter.
I update a single item in the list, then feed it to the List adapter.
I observe that first the view gets drawn using the old list, then the delta gets applied on top of the old list.
I am confused why the old list gets drawn? Shouldnt only the delta be bound if the old list is already bound to the UI. Why rebound the old list (i.e. the previous state) if it is already bound?
Fixed the issue.. error was as follows:
in my MainActivity I had:
The problem was the :
This should be called exactly once in the OnCreate function and not each time we get result from the observer..
Fixed code: