Skip to content

Commit

Permalink
fix: add missing id param for useStateErrors call to useChannelStateL…
Browse files Browse the repository at this point in the history
…istener
  • Loading branch information
owenpearson committed Sep 29, 2023
1 parent 76cc74f commit ef92509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/react-hooks/src/hooks/useStateErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ef92509

Please sign in to comment.