AgoraIO-Community / Agora-RTC-React

A react wrapper for Agora RTC NG SDK
MIT License
92 stars 48 forks source link

user-unpublished not caught when using Strict Mode #50

Open nikasakandelidze opened 1 year ago

nikasakandelidze commented 1 year ago

The problem i encountered is next:

I followed the exact implementation as stated in: React Agora Example But when Strict Mode is on "user-unpublished" event for meeting participants doesn't get executed. Can't determine whether event is not being sent at all or simply other participants sides don't get according events but when strict mode is on it doesn't work ( All other events work fine ).

When turning Strict mode off everything works fine.

I'm interested whether or not it is a common behaviour? And if turning off Strict Mode for these kinds of purposes is ok. Thanks in advance

EkaanshArora commented 1 year ago

Can you share your code? I want to take a look at how you're attaching the event listener? If it's easy please share a reproduction and I can take a look. Thanks.