Skip to content

MessageBar calling 'onSendMessage' twice and getting a console error #483

@jeff-phillips-18

Description

@jeff-phillips-18

If my onSendMessage function is a react callback, it ends up being called twice when the user adds a message. Also seeing:

Cannot update a component (`ChatModelEval`) while rendering a different component (`MessageBar`). To locate the bad setState() call inside `MessageBar`, follow the stack trace as described in https://react.dev/link/setstate-in-render

in the console window.

Metadata

Metadata

Labels

PF6Applies to only the PF6 version

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions