You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem with my ChatbotUI app. It uses React Context to store a global state. This state includes a lot of shared information like chat history, models, and the text input value.
The issue is that every time a user types a character in the text area, the whole UI rerenders. This happens because updating React Context triggers a rerender, and almost every component in the app references this global state.
Since the app doesn't get much attention, I decided to fork it and make some performance improvements. You can check out my changes here: GitHub Link.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem with my ChatbotUI app. It uses React Context to store a global state. This state includes a lot of shared information like chat history, models, and the text input value.
The issue is that every time a user types a character in the text area, the whole UI rerenders. This happens because updating React Context triggers a rerender, and almost every component in the app references this global state.
Since the app doesn't get much attention, I decided to fork it and make some performance improvements. You can check out my changes here: GitHub Link.
Beta Was this translation helpful? Give feedback.
All reactions