Closed
Description
Description
When processing the stream inside processUIMessageStream
, it mutates the message part, which doesn't update the message object reference itself in the messages array. This ends up causing the messages to never re-render if this is the only change that happens in the stream. Example: a tool call continuation. When I disable the react compiler it re-renders fine. The fix is to copy the messages array in my message list component, but that is obviously a workaround.
AI SDK Version
5.0.0-alpha.4