Skip to main content

Prevent Composer Text Loss When Typing During Message Send

When a user sends a message and begins typing a new one before the previous send operation completes, the message composer may unexpectedly clear the newly typed text.

This occurs due to the internal composerRestore mechanism, which is intended to restore user input after the SDK clears the composer on send completion. Currently, the restoration process triggers a component remount with the correct initialComposerText. However, it is immediately followed by a reset of composerRestore, causing a second remount without the restored text—resulting in text loss.

Log in to comment and vote

No comments yet

Be the first to share your thoughts.