Migrating from LiveData to Coroutines and Flow - Jossi Wolf

Опубликовано: 18 Ноябрь 2020
на канале: Android Summit
4,245
114

Recorded at Android Summit 2020 https://androidsummit.org

When we joined a new project with heavy LiveData usage, we discovered we had UI thread blocks all over the place. The search for their cause led us to learn that LiveData was at the core of our problems. This talk is about how we identified the issue and refactored to Coroutines and Flow.

Starting with a look at LiveData's internals, you will learn how we found the cause for the main thread blocks, and look at some possible fixes. Afterwards, we will take a look at alternatives to LiveData and how we migrated to our option of choice: Coroutines and Flow.
Along the way, you will learn some cool tricks for refactoring and migrating code of any kind!
Finally, we will talk about using StateFlow as a total replacement for LiveData and how to incorporate it in your migration efforts.

You will leave this talk ready to tackle your migration to Coroutines and Flow and improve your codebase!


Смотрите видео Migrating from LiveData to Coroutines and Flow - Jossi Wolf онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Android Summit 18 Ноябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,24 раз и оно понравилось 11 людям.