Does anyone know a good design pattern to have a c...
# compose
z
Does anyone know a good design pattern to have a composable re-render after a content provider has changed?
z
The same way to get a composable to update after any state has changed? Store the state in a snapshot state object, and when the source updates, write the new state into the snapshot state object.
👀 1
Flow.collectAsState
is a pretty concise example of this pattern.