Whisper icon indicating copy to clipboard operation
Whisper copied to clipboard

[BUG] so much rendering

Open Dun-sin opened this issue 3 years ago • 2 comments

Description

When a user chats with another user, it renders the message many times

the real problem here is the message sent is dispatched a lot of times to Redux and Redux shows the messages

Screenshots

No response

Dun-sin avatar Aug 22 '22 11:08 Dun-sin

@Dun-sin Can you give me the steps to reproduce this issue?

mathiasayivor avatar Aug 22 '22 13:08 mathiasayivor

@Dun-sin Can you give me the steps to reproduce this issue?

just try to chat

Dun-sin avatar Aug 23 '22 03:08 Dun-sin

the problem seems to be coming from the dependency array passed to the useEffect hook inside the chat component. addMessage also gets called more than once which makes the message appear multiple times.

I would like to work on this if it hasn't been assigned to anyone yet.

olamide203 avatar Oct 03 '22 14:10 olamide203

the problem seems to be coming from the dependency array passed to the useEffect hook inside the chat component. addMessage also gets called more than once which makes the message appear multiple times.

I would like to work on this if it hasn't been assigned to anyone yet.

@jasham @mathiasayivor were you able to come up with a fix?

Dun-sin avatar Oct 03 '22 15:10 Dun-sin

the problem seems to be coming from the dependency array passed to the useEffect hook inside the chat component. addMessage also gets called more than once which makes the message appear multiple times. I would like to work on this if it hasn't been assigned to anyone yet.

@jasham @mathiasayivor were you able to come up with a fix?

Thought @jasham was to do some presentation?

mathiasayivor avatar Oct 03 '22 20:10 mathiasayivor

the problem seems to be coming from the dependency array passed to the useEffect hook inside the chat component. addMessage also gets called more than once which makes the message appear multiple times. I would like to work on this if it hasn't been assigned to anyone yet.

@jasham @mathiasayivor were you able to come up with a fix?

Thought @jasham was to do some presentation?

I think so too

Dun-sin avatar Oct 04 '22 12:10 Dun-sin

the problem seems to be coming from the dependency array passed to the useEffect hook inside the chat component. addMessage also gets called more than once which makes the message appear multiple times. I would like to work on this if it hasn't been assigned to anyone yet.

@jasham @mathiasayivor were you able to come up with a fix?

Thought @jasham was to do some presentation?

I think so too

Let's connect today.

jasham avatar Oct 04 '22 13:10 jasham

Hi @Dun-sin, can I help with this issue?

olamide203 avatar Oct 06 '22 10:10 olamide203

Hi @Dun-sin, can I help with this issue?

You can join the discord server and ask @jasham if he needs help with it

Dun-sin avatar Oct 06 '22 10:10 Dun-sin