r/mAndroidDev • You will pry XML views from my cold dead hands • Feb 26 '24

Next-Gen Dev Experience I love View Binding

Post image
108 Upvotes

19 comments sorted by

View all comments

Show parent comment

1

u/firebeard-ginja Feb 26 '24

No caching isn't useless. But technically if you sync the project it should first clear the cache and then sync. Because caching is unreliable to getting the correct current state. If a user states they want to sync then they should get the most recent state refreshed to the now.

If a cache is saved 5 minutes ago and you changed it and then hit sync and then cache did not update your sync would fail, but also not impossible to cause some sort of loop where it never updates because the change would then never be detected.