I have a project that uses kotlin scripting for co...
# compose
z
I have a project that uses kotlin scripting for compose. Something I haven't figured out is how to give compose enough time to display the new content. Is there a better way than a delay statement?
Copy code
content = null
delay(20)
content = {
    contentMethod(currentComposer, result.scriptInstance)
}
https://github.com/zt64/compose-scripts/blob/main/host/src/commonMain/kotlin/dev/zt64/composables/Host.kt#L125-L131