Skip to content

Conversation

SVyatoslavG
Copy link

I refactored the Bot component's message state management to improve performance by avoiding unnecessary deep cloning of message arrays and only mutating message arrays.

Replaced direct scroll-to-bottom logic with a new scrollToBottom helper that intelligently scrolls to the latest bot message or falls back to the bottom, with smooth scrolling and error handling, improving user experience when new messages arrive.

Updated the Rollup build configuration to avoid minification in development and add CORS headers to the dev server.

I have tested the update and works perfectly fine.

…update Rollup config for development mode; Fixed flickering issues when avatar and text were flickering due on unnecessary rebuild of UI widgets
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