The state is changing, but the recomposer doesn't ...
# compose
s
The state is changing, but the recomposer doesn't update the TextNode, any solutions?
a
If the snapshot where the state changes is not committed, the composition will not see the change reported. Compose UI sets this up to periodically commit the global snapshot transaction: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/platform/GlobalSnapshotManager.android.kt;l=20?q=GlobalSnapshot&sq=
s
I copied one and call it when using compose
the "Observer " is printing but the ui is not updating
solved