Join Slack
Powered by
I have a project that uses kotlin scripting for co...
# compose
z
zt
10/17/2024, 4:40 PM
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
3
Views
Open in Slack
Previous
Next