Append causing multiple rendering in useEffect #4483
Unanswered
josuasimatupang
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone! I'm new here and need help how to solve this issue. I'm trying to append message in useEffect while searchCommandPalette is updated and the current useEffect implementation causes multiple renders and duplicate streaming responses with different answers. The searchCommandPalette is the value of the input of Command Palette. Any solution how to approach this better? Thank you!
Snippet code useEffect:
Full code:
Beta Was this translation helpful? Give feedback.
All reactions