Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure distinctUntilChanged handle observers that mutate source LiveData
`latestValue = it` is executed only after new value is set to Mediator. This gives observers possibilty to set new value to source LiveData before that assigment is executed. Luckily, LiveData handles this case by invalidating current dispatch of source LiveData, and not dispatching immediately so currently everything works correctly. I'm adding this test case to catch future regression, if LiveData behavior changes.
- Loading branch information