BUG:<chat/>组件使用composer渲染自定义组件<inputarea/>之后,每次发送完消息,我自己定义的<inputarea/>就会强制刷新
- Dominant language
- TypeScript
- Stars
- 4.4k
- Forks
- 425
- PR merge metrics
- No merged PRs in 30d
Description
**Version information (版本信息)**
@2.4.2
- ChatUI or ChatUI Pro?
- ChatUI
- ChatUI Version:@2.4.2
- React Version:v18.2
- OS Version:win11
- Browser Version:最新版chrome
**Describe the bug (描述问题)**
BUG:组件使用composer渲染自定义组件之后,
每次发送完消息,我自己定义的就会强制刷新,导致里面刚打印的文本会随着刷新丢失。
**Steps To Reproduce (重现步骤)**
bug:演示:

具体代码实现如下:
1.的使用,以及自定义composer
2.项目页面
**Link to minimal reproduction (最小化重现链接)**
有一篇csdn的博客,也有类似的自定义composer重新强制渲染的说明:
https://blog.csdn.net/runrun117/article/details/118223631
**Expected behavior (期望的结果是什么)**
有人可以给出解决建议和思路
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Chat component's composer customization and the provided screenshots and reproduction description. Trace what happens to the custom inputarea after a message is sent, then verify the component no longer forcibly refreshes and loses newly printed text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100