setState()calls in theTextBoxcomponent need to be flushed immediately. However, if you receive a new messagewhile you’re typing, it is probably better to delay rendering of the newMessageBubbleup to a certain threshold (e.g. a second) than to let the typing stutter due to blocking the...