Skip to content

Conversation

widjajadelvin
Copy link

We are streaming texts for our chat bot app in markdown format and we realise that this component will be re-rendered every time a new text is appended to the current one. Due to the re-rendering one will lose the highlighted text while the app is streaming.

This PR updates only the necessary parts of the DOM, preserving user interactions (e.g., text selection) and improving performance.

Ref to issue: #447 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant