Post

Have you (like me 🫣) misunderstood the concept of a backwards-write in Compose? Well we have some new content on this topic! What is a backwards write? Its when state is modified in a later phase or downstream scope than where it was originally read from.

What can it cause? Unexpected layout flashing, frame drops or infinite loops 🫳🏻📸🔂 - nobody wants that 🙂‍↔️ For example - writing to a state in layout modifier, that’s read in earlier composition, can cause this kind of problem. Check the new documentation for more developer.android.com/develop/ui/c...

developer.android.comBackwards Write  |  Jetpack Compose  |  Android DevelopersCovering the concept of backwards writes in Jetpack Compose, what a consequence of backwards writes are, and how to avoid them.

0 reposts5 likes

No replies yet.