From bcc9d195be1c6f1fb1725159c35ae7145426c467 Mon Sep 17 00:00:00 2001 From: Milosz Filimowski Date: Mon, 2 Feb 2026 10:26:13 +0100 Subject: [PATCH] fix logger unstable --- packages/react-client/src/FishjamProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-client/src/FishjamProvider.tsx b/packages/react-client/src/FishjamProvider.tsx index 12c837eb..a4120afa 100644 --- a/packages/react-client/src/FishjamProvider.tsx +++ b/packages/react-client/src/FishjamProvider.tsx @@ -78,7 +78,7 @@ export function FishjamProvider(props: FishjamProviderProps) { return { getLastDevice, saveLastDevice }; }, [props.persistLastDevice]); - const logger = getLogger(props.debug ?? false); + const logger = useMemo(() => getLogger(props.debug ?? false), [props.debug]); const { cameraManager, microphoneManager, initializeDevices } = useMediaDevices({ videoConstraints: props.constraints?.video ?? VIDEO_TRACK_CONSTRAINTS,