Resonate icon indicating copy to clipboard operation
Resonate copied to clipboard

LiveKit Controller event handler has an undefined state handler

Open ARYPROGRAMMER opened this issue 1 year ago • 1 comments

🐛 Describe the bug

While running the app

Image

potential fixes would be to comment out

    ..on<RoomConnectionStateChangedEvent>((event) {
      if (event.newState == ConnectionState.disconnected) {
        handleDisconnection();
      }
    })

or use

    ..on<RoomMetadataChangedEvent>((event) {
      if (event.metadata == "disconnected") {
        handleDisconnection();
      }
    })

ARYPROGRAMMER avatar Apr 01 '25 08:04 ARYPROGRAMMER

Hey @ARYPROGRAMMER , @Aarush-Acharya

Let’s add a small delay before loading the new profile data. This gives the app a moment to catch up and stops it from freaking out when you switch too quickly. We can use a debounce trick—basically, wait like 300 milliseconds after the last switch before doing the heavy work. It’s an easy tweak that should smooth things out and keep the app from crashing.

What do you think?

shwetd19 avatar Apr 08 '25 12:04 shwetd19

@shwetd19 @ARYPROGRAMMER could you please give steps to recreate this error? I have not been able to recreate it

M4dhav avatar Jul 31 '25 23:07 M4dhav

@M4dhav is this issue still open can i please work on it? can u please assign it to me

4555jan avatar Sep 26 '25 18:09 4555jan

Hey @4555jan please verify this error exists and give steps to verify and reproduce it first. Once we are sure the issue does exist, I will assign it to you

M4dhav avatar Sep 27 '25 04:09 M4dhav

@M4dhav nah its not a issue its all works smooth tbh

4555jan avatar Oct 05 '25 16:10 4555jan

Closing issue as verified to not be present by @4555jan

M4dhav avatar Oct 06 '25 12:10 M4dhav

🔒 Issue Closed - Thank You, @M4dhav!
This issue has been resolved or is no longer relevant.

  • If you have further questions, feel free to open a new issue. 💡

Thanks for helping improve the project! 🚀

github-actions[bot] avatar Oct 06 '25 12:10 github-actions[bot]