airbnb / mavericks

Mavericks: Android on Autopilot
https://airbnb.io/mavericks/
Apache License 2.0
5.83k stars 500 forks source link

Handle view diffing in XML based views. #625

Closed Sardorbekcyber closed 2 years ago

Sardorbekcyber commented 2 years ago

Do you know any workaround to know diffing of view. In MVVM each view had its own state and rendering was appropritate to single change but when all screen is combined to single state it gets rendered on every state change. How this issue can be addressed?

I tried to use diff builder from MVI Kotlin by Ark Ivanov but there was no rendering in after navigating back.

gpeal commented 2 years ago

Setting a property on a view should be idempotent so that the actual invalidate() method should be very, very lightweight.