♻️(frontend) introduce useRoomId hook
Manipulating the room's id from the react-query cache should be encapsulated in a dedicated hook.
This commit is contained in:
committed by
aleb_the_flash
parent
3be5a5afc6
commit
d1e008a844
@@ -0,0 +1,6 @@
|
|||||||
|
import { useRoomData } from './useRoomData'
|
||||||
|
|
||||||
|
export const useRoomId = () => {
|
||||||
|
const apiRoomData = useRoomData()
|
||||||
|
return apiRoomData?.livekit?.room
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user