LiveKit Controller event handler has an undefined state handler
🐛 Describe the bug
While running the app
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();
}
})
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 @ARYPROGRAMMER could you please give steps to recreate this error? I have not been able to recreate it
@M4dhav is this issue still open can i please work on it? can u please assign it to me
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 nah its not a issue its all works smooth tbh
Closing issue as verified to not be present by @4555jan
🔒 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! 🚀