mirror of
https://github.com/soconnor0919/hristudio.git
synced 2026-03-24 03:37:51 -04:00
refactor: simplify wizard UI by removing trial monitoring and robot control tabs, and streamlining monitoring panel props.
This commit is contained in:
@@ -107,12 +107,15 @@ export function useWizardRos(
|
||||
if (!service) return;
|
||||
|
||||
const handleConnected = () => {
|
||||
if (!mountedRef.current) return;
|
||||
console.log("[useWizardRos] Connected to ROS bridge");
|
||||
console.log("[useWizardRos] handleConnected called, mountedRef:", mountedRef.current);
|
||||
// Set state immediately, before checking mounted status
|
||||
setIsConnected(true);
|
||||
setIsConnecting(false);
|
||||
setConnectionError(null);
|
||||
onConnectedRef.current?.();
|
||||
|
||||
if (mountedRef.current) {
|
||||
onConnectedRef.current?.();
|
||||
}
|
||||
};
|
||||
|
||||
const handleDisconnected = () => {
|
||||
|
||||
Reference in New Issue
Block a user