This repo reproduces a bug/behavior using Jetpack Compose while typing.
If there is any delay between typing and updating the text of a TextField
then the text can be messed up if the text input is too fast.
A workaround for this is create a stateful version of TextField
which keeps the text it needs to display, and notify the caller for updates to the text.
compose_typing.mp4
For full implementation see MainActivity.kt