How does Viewmodel work internally? Deepdive into the ViewModelProvider class

preview_player
Показать описание
In this video, we are going to deep dive into how ViewModel works internally and what happens when you call the ViewModelProvider class.

Рекомендации по теме
Комментарии
Автор

Nice in depth explanation. More than sufficient.

atulkumar-bbvi
Автор

This is something I was wondering for ages, Thanks Buddy !!
Keep the good work up.

aviationandmeditation
Автор

IMPORTANT 05:17 NonConfigurationInstances does not retain the ViewModelStore bcz it's static. But bcz old NonConfigurationInstances object is passed from destroyed activity to newly created activity.
It contains the old ViewModelStore with the old viewModel.
That's how viewModel retains data when activity rotates.

It's bad practice to retain data with static members, as it leads to memory leaks and high memory usage.

makarandthakare
Автор

Dude this internal knowledge of apis is really really great. Much appreciation to you and also please make more videos of such indepth topics

siddharthsharma
Автор

That was a very informative video. But the main feature of the view model is, that it persists even if the activity is destroyed temporarily. Most of the interviewers ask this question only i.e. how the view model holds data on configuration changes.
So that should have been covered.

I hope you create a new video for that.

TheMohit
Автор

Very good Explanation I really like this.

abhishektripathi
Автор

nice explanation, very helpful, keep creating such videos,

_AnkitBisht
Автор

Would love a similar video on either internal working of Glide, Picasso etc or how to efficiently load images without these libraries

adeshfafriya
Автор

bro codes were explaning a lot to me but ı dont understand single word that you re saying

liberte
Автор

this videos are helpful, also guide how to understand things by trying to deeg into the code.

vikaspandey
Автор

Can you also make video on how suspend function works internally. Thanks in advance

sagaravhad