I’ve must have missed something about how the UI updates are handled.
Before (when the magic of @Model existed) I could change the data model outside a @compose scope (data pushed via FCM) and it automatically updated the UI.
Without that magic, I should according to the migration guide, I should use
, both of them reassign the datamodel to a wrapped variable inside the @Compose scope and i’m not sure how to mutate the data class and force a refresh.
2 years ago
Hello everyone, I made a very simple app using compose and it crashes with the error :
java.lang.IllegalArgumentException: Key 640122159 was already registered. Please call unregister before registering again
Which is used in many base composable components. I would like to use especially the way LayzyItems using it to be able to add and remove Nodes during measurement runs.
Why is it hidden from the Public API? Or maybe i just missed something?
Hello, people from Flutter made an extensive document about state restoration and their plans (since it's not supported natively yet).When it comes to Jetpack Compose, I've not seen much about facilities to ease state saving (yet), so I'm wondering if that document could help shape the APIs that we can use to support state restoration easily.Here it is: https://flutter.dev/go/state-restoration-design
. Let say to switch an image every second. Does anyone know how to achieve this using Compose animation API or transition? Or might there is some other way to do it?
2 years ago
Hi. My coworker @Jordan Carlyon and I are Android developers at the Wall Street Journal. We’re working on a joint initiative with our iOS and backend teams to create a Component Library that uses Jetpack Compose backed by JSON models. We successfully completed a concept thanks to the documentation and samples, but I haven’t found much information on the roadmap in terms of moving to alpha or beta. A level of parity with SwiftUI is important.Right now we’re debating whether or not it’s worth using Jetpack Compose in a small corner of our app or just building a standalone library and waiting to integrate until Jetpack Compose is more mature knowing that it could be a while.Any advice or general feedback would be helpful. Thanks!
2 years ago
Hi, I need an advice again.
the code below hide ui if shown == false
but, I would like to use the way below similar to data binding.(
as it reduce indent depth, so, seems easy to read UI code. and feel better to separate ui and logic.