happy-boots-27574
08/12/2025, 11:02 PMRoom
. I realise I can utilise useLiveKitRoom to get information but it just results in more code / feels less efficient.tall-airline-16756
08/12/2025, 11:02 PMtall-airline-16756
08/12/2025, 11:02 PMonConnected
prop in the LiveKitRoom
React component doesn’t actually return any data, like Room
info. It’s simply a callback that runs when the room connection is up and running, but it doesn’t pass along any parameters or return values.
If you’re looking to grab Room
details as soon as the connection happens, a great way is to use the useLiveKitRoom
hook or directly tap into the Room
instance. Just give me a shout if you want some tips on how to do this smoothly—I’m here to help!
Sources: docs/functions/LiveKitRoom.html | examples/nextjs/pages/customize.tsxhappy-boots-27574
08/12/2025, 11:03 PMtall-airline-16756
08/12/2025, 11:03 PM