Skip to content

fix: Debounce streamed message updates in ChatStore#410

Merged
abhithesys merged 1 commit intomainfrom
abhishek/fix-max-update-depth
Mar 28, 2026
Merged

fix: Debounce streamed message updates in ChatStore#410
abhithesys merged 1 commit intomainfrom
abhishek/fix-max-update-depth

Conversation

@abhithesys
Copy link
Copy Markdown
Contributor

What

Debounce streamed message updates in ChatStore using RAF to prevent React max update depth error.

image

Changes

Add debouncing in updateMessage call in processStreamedMessage.

Test Plan

  • Verified locally by creating a synthetic stream

Copy link
Copy Markdown
Contributor

@ankit-thesys ankit-thesys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@abhithesys abhithesys merged commit 471bf48 into main Mar 28, 2026
1 check passed
@abhithesys abhithesys deleted the abhishek/fix-max-update-depth branch March 28, 2026 11:16
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.

2 participants