Giter Site home page Giter Site logo

Comments (4)

jiushu531 avatar jiushu531 commented on July 19, 2024

感谢您的反馈!
userID 是用户自己设置的,在chat-uikit-react/examples/sample-chat/src/demo/SampleChat.tsx 文件中可以自行修改,这里 demo 写死的固定 ID ‘xxx’。
另外此处重复登录的报错,是因为开启了react 严格模式,代码会重复触发,build后不会有这个问题。
image

from chat-uikit-react.

yuankun4559 avatar yuankun4559 commented on July 19, 2024

本地代码直接集成,会报很多错,看了下是安装的依赖在@tencentcloud/chat-uikit-react/dist/esm同级目录缺失node_modules/tim-js-sdk/tim-js.js 这个怎么解决呀
image

from chat-uikit-react.

dawnrking avatar dawnrking commented on July 19, 2024

chat-uikit-react/examples/sample-chat

感谢您的反馈!可以把 @tencentcloud/chat-uikit-react 升级到 v1.0.2 版本

from chat-uikit-react.

mankeheaven avatar mankeheaven commented on July 19, 2024

@jiushu531 你这个思路是不对的,严格模式触发多次就是为了让你写代码注意和处理副作用的影响。demo中应该处理一下这个useEffect setTim这块。默认就应该按照render twice的方式来写你只login一次

from chat-uikit-react.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.