project_chat_application icon indicating copy to clipboard operation
project_chat_application copied to clipboard

Rendering messages twice

Open Lagnajit09 opened this issue 1 year ago • 2 comments

Hey... great video.... I checked the code line by line.... the difference is i created my react-app using vite@latest But i replaced my main.js where there was <React.StrictMode> with your index.js The useEffects are the same as yours. Can you help me with this?

Screenshot 2024-02-26 012308 Each message i am sending is being sent twice.

Lagnajit09 avatar Feb 25 '24 19:02 Lagnajit09

did you use socket or http ? This is the why you are getting this issue. let's discuss in more detail on telegram. this is my telegram @leo1228codeforce .

leo-1228 avatar Jun 03 '24 05:06 leo-1228

Hey thanks for replying. I used socket for realtime-communication. Yeah It is fine to discuss it on telegram.

Lagnajit09 avatar Jun 03 '24 16:06 Lagnajit09