Skip to content

[REFACTOR]: Remove redundant message state in ChatContainer #4940

@shatfield4

Description

@shatfield4

What would you like to see?

  • ChatContainer maintains a message state that syncs with PromptInput on every keystroke via onChange
  • This is redundant since PromptInput already owns its own input state internally
  • This causes ChatContainer to rerender on every keystroke, which cascades to child components unnecessarily
  • The recent fix in fc9bd71 addressed a visual symptom of this (animation restart) by stabilizing the key prop, but the underlying unnecessary rerenders remain

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions