This message was deleted.
# helpdesk
s
This message was deleted.
m
@clean-lunch-36557 thread your messages please
@clean-lunch-36557 also said:
Copy code
const HandleLeaveRoom = () => {
	const connectionState = useConnectionState();
	const navigate = useNavigate();
  if(connectionState === 'disconnected') {
		navigate('/lobby');
	}
  …
}
And now rendering it inside the LiveKitRoom Component, is this a good way???