Skip to content

LiveData-CombineTuple-KT 2.0.0

Latest
Compare
Choose a tag to compare
@Zhuinden Zhuinden released this 21 Dec 14:01

LiveData-CombineTuple-KT 2.0.0 (2021-12-21)

BEHAVIOR CHANGE: Objects.equals() is applied before setting the value on the Mediator.

Refer to https://github.com/android/architecture-components-samples/blob/ea59732402708c8e7bca3ecc24a7c9ca85736b55/GithubBrowserSample/app/src/main/java/com/android/example/github/repository/NetworkBoundResource.java#L60-L65

FIX: onActive() would call setValue which would trigger observe() as many times as there were LiveDatas.

I think this was reported, but someone truly pointed out the cause not too long ago, unfortunately.