Remember a State across Configuration Change with a Custom Saver - Jetpack Compose

preview_player
Показать описание
🏆 My Online Courses

☕ Let's get a coffee. You're paying! :)

💻 Github

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

Hey Stefan, I have an issue there are 3 screens in my bottom navigation bar those 3 screens calls the 3 different network calls but whenever Iam navigating to other screen each time every screen is calling the api function (I used view Model init block to call it). Like how to solve this and save the entire screen in navigation and it should show the exact screen when user left while navigating to other screen in bottom navigation

bharathprakash
Автор

Hey Stefan
Can you share a good way to create a crop view?
(something like ucrop for ex)
Thnx for the good content

jovianswank
Автор

How can we save a sealed class in this saver instead of data class

harishpadmanabh
Автор

Hi all,
when I set the markdown, HTML or text to the state using methods (state.setMarkdown(), state.setHtml() or state.setText()) I am not able to edit the the content of EichTextEditor. Do you know how to solve this?

Regards,
saaric.

saaric
Автор

When would it be useful to use instead of viewmodel?

patrick.
Автор

Hey Stev, thank you for this timely explanation..One question, can I use this to pass objects between screens??

allanandliftedhands
Автор

How to make viewModel show the data only once and not again after reconfiguration?

nargesdeypir