Skip to content

fix(frontend): buffer suggestion card textarea input locally to prevent render loop#848

Open
dembrane-sam-bot wants to merge 1 commit into
mainfrom
sam/fix-suggestion-card-render-loop
Open

fix(frontend): buffer suggestion card textarea input locally to prevent render loop#848
dembrane-sam-bot wants to merge 1 commit into
mainfrom
sam/fix-suggestion-card-render-loop

Conversation

@dembrane-sam-bot

Copy link
Copy Markdown
Contributor

What is this change?

Buffers local edits on the proposed changes card ProjectUpdateSuggestionCard using a dedicated BufferedTextarea component. Edits are only flushed to the main card state on onBlur instead of on every keystroke (onChange).

What did Sam notice that led to this?

Jor reported that editing key terms in the suggested changes widget causes the chat panel list to re-render, drop focus, or freeze the chat client due to cascading parent-level reactive state updates triggered on every single keystroke.

Confidence

Very high. Buffering keyboard input isolate the typing-state churn entirely from Mantine/React/ChatPanel updates, flushing changes only when focus leaves the input.

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