Lots of marker request on Channel actions

When performing some channel actions using the ChannelCollection methods, these generate a lot of unnecessary network requests which slow my app down. This happens with joining a channel, leaving a channel, adding members, and removing members. What could be causing this?

I’ve had this behavior in ts-sdk v6.19, v6.25, and v6.30.

I also thought it might had something to do with babel transpiling async functions to generators but I disabled it and it still happens.

In this example, only the first request is from the actual leaveChannel method, the other are triggered by the onChannelLeft event, but I don’t know what’s triggering it so many times.

Hello @amezal , To help investigate further, could you please clarify if you are using our UIKit or your own custom UI implementation?

If you’re using our UIKit, kindly provide the version you’re working with so we can assist you better.

Looking forward to your response!

Hello!
I’m using my own implementation, It’s based on UiKit but heavily modified.

Hello @amezal , Our team was unable to reproduce the issue on our UIKit, so we recommend merging the latest version of the UIKit code into your repository and trying again. Please refer to this link for further details: https://docs.amity.co/amity-uikit/changelogs/changelog-2#version-3.10.0-2024-09-02. If you are still facing issues, please check on your UI side. If you need further assistance, feel free to let us know.

Hey, as I said it’s only based on the UiKit but it has months of modifications so pretty much not possible to merge with the latest version. Any other way you guys can help me?

Hey, so I set up a new clean app with the last version of the UiKit to see if I could isolate the issue and it definitely happens with the UiKit too. I made a video so it’s easier to see what I mean, top help your team reproduce the issue, hope it’s useful!

Hello @amezal , Thank you for sharing the details and the video—it’s definitely helpful for us to understand the issue better. Could you please provide the link to the UiKit repository that you are using? This will help us investigate further and reproduce the issue on our side.

For sure! This is the repo, same as the one mentioned in the docs, I’m using the default branch (v3)

1 Like

@amezal Thank you for providing all the necessary information. We have forwarded it to the team for further investigation. We will keep you updated on the progress.

1 Like

Hello! Any updates on this?

Hello @amezal , Our team is currently working on your issue. We will update you as soon as we have more information.

Thank you for your patience. Please let us know if you need further assistance.

Hello @amezal For the issue you reported, we have released a fix. Please try updating the TS SDK to version 6.30.3

1 Like

Just tested it, issue is fixed. Thank you! :sunglasses:

1 Like