Skip to content

Commit a95db13

Browse files
committed
fix: use shallowRef to avoid benign cloning error
1 parent 5c4fffd commit a95db13

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

frontend/src/composables/useMeetingLogic.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import { confirmDialog, createResource, frappeRequest, toast } from "frappe-ui";
2-
import { defineAsyncComponent, h, onUnmounted, ref, watch } from "vue";
2+
import {
3+
defineAsyncComponent,
4+
h,
5+
onUnmounted,
6+
ref,
7+
shallowRef,
8+
watch,
9+
} from "vue";
310
import { useRouter } from "vue-router";
411
import {
512
noiseCancellationEnabled,
@@ -58,7 +65,7 @@ export function useMeetingLogic(meetingState, meetingId, options = {}) {
5865

5966
// Refs
6067
const localVideo = ref(null);
61-
const sfuManager = ref(null);
68+
const sfuManager = shallowRef(null);
6269
const screenShareVideoElements = new Map();
6370
const realtimeListenersSetup = ref(false);
6471
const activeSpeakerTimeout = ref(null);

0 commit comments

Comments
 (0)