[web][cast] Minor fixes

This commit is contained in:
Neeraj Gupta 2024-04-21 17:59:57 +05:30
parent fdc7cf6ad8
commit 8e5d5c4e41
2 changed files with 3 additions and 2 deletions

View file

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

View file

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