Comments (4)
感谢您的反馈!
userID 是用户自己设置的,在chat-uikit-react/examples/sample-chat/src/demo/SampleChat.tsx
文件中可以自行修改,这里 demo 写死的固定 ID ‘xxx’。
另外此处重复登录的报错,是因为开启了react 严格模式,代码会重复触发,build后不会有这个问题。
from chat-uikit-react.
本地代码直接集成,会报很多错,看了下是安装的依赖在@tencentcloud/chat-uikit-react/dist/esm同级目录缺失node_modules/tim-js-sdk/tim-js.js 这个怎么解决呀
from chat-uikit-react.
chat-uikit-react/examples/sample-chat
感谢您的反馈!可以把 @tencentcloud/chat-uikit-react 升级到 v1.0.2 版本
from chat-uikit-react.
@jiushu531 你这个思路是不对的,严格模式触发多次就是为了让你写代码注意和处理副作用的影响。demo中应该处理一下这个useEffect setTim这块。默认就应该按照render twice的方式来写你只login一次
from chat-uikit-react.
Related Issues (8)
- npm run build 报错 HOT 5
- 怎么设置语言啊 HOT 1
- 聊天上传一张图片,再发一行文字,会一起删除 HOT 1
- npm run dev报错 HOT 2
- process.env throw an error when searching to add a contact HOT 1
- 前端做离线数据了吗,是用什么做的?
- demo 出现以下错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chat-uikit-react.