Skip to content

[STREAM-987] Memoize conversations so they don't change on every render#952

Merged
hjon merged 2 commits intodevelopfrom
STREAM-987
Nov 11, 2025
Merged

[STREAM-987] Memoize conversations so they don't change on every render#952
hjon merged 2 commits intodevelopfrom
STREAM-987

Conversation

@hjon
Copy link
Copy Markdown
Collaborator

@hjon hjon commented Nov 10, 2025

I don't really know React, so I don't know if this is the best fix (or only fix for this situation), but this is the suggestion I got from the robots and it did seem to work correctly.

For context, it looks like the error started after this commit.

@zservies
Copy link
Copy Markdown
Collaborator

Yeah I think this fix is the right one. Something new and cool in the React compiler is the automatic detection of this stuff. So you don't need to manually do things like useMemo but I think it is still a relatively new feature.
https://react.dev/learn/react-compiler

@hjon hjon merged commit c55e7f1 into develop Nov 11, 2025
21 checks passed
@hjon hjon deleted the STREAM-987 branch November 11, 2025 17:35
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.

3 participants