From ef92509c0cef8f54d793938481811c9d3366c946 Mon Sep 17 00:00:00 2001 From: Owen Pearson Date: Fri, 29 Sep 2023 15:21:10 +0100 Subject: [PATCH] fix: add missing id param for useStateErrors call to useChannelStateListener --- src/platform/react-hooks/src/hooks/useStateErrors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/react-hooks/src/hooks/useStateErrors.ts b/src/platform/react-hooks/src/hooks/useStateErrors.ts index 1b180213ce..7c98ea44b7 100644 --- a/src/platform/react-hooks/src/hooks/useStateErrors.ts +++ b/src/platform/react-hooks/src/hooks/useStateErrors.ts @@ -21,7 +21,7 @@ export function useStateErrors(params: ChannelNameAndOptions) { useConnectionStateListener(['connected', 'closed'], () => { setConnectionError(null); - }); + }, params.id); useChannelStateListener(params, ['suspended', 'failed', 'detached'], (stateChange) => { if (stateChange.reason) {