فهرست منبع

[web][cast] Minor fixes (#1507)

## Description

## Tests
Neeraj Gupta 1 سال پیش
والد
کامیت
9cb030124b
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 1
      web/apps/cast/src/pages/index.tsx
  2. 0 1
      web/apps/cast/src/utils/useCastReceiver.tsx

+ 2 - 1
web/apps/cast/src/pages/index.tsx

@@ -93,9 +93,10 @@ export default function PairingMode() {
         }
 
         return () => {
+            console.log("stopping cast context");
             context.stop();
         };
-    }, [cast, isCastReady]);
+    }, [cast]);
 
     const messageReceiveHandler = (message: {
         type: string;

+ 0 - 1
web/apps/cast/src/utils/useCastReceiver.tsx

@@ -39,7 +39,6 @@ const load = (() => {
 export const useCastReceiver = () => {
     const [receiver, setReceiver] = useState<Receiver | null>({
         cast: null,
-        debug: null,
     });
 
     useEffect(() => {