Skip to content

Commit 2c60c63

Browse files
authored
fix: add effect dependencies (#108)
1 parent a2b7637 commit 2c60c63

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

gaming-livestream/src/components/Chat/ChannelContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const ChannelContainer = () => {
1717
};
1818

1919
loadChat();
20-
}, [client]);
20+
}, [client, setActiveChannel]);
2121

2222
if (!channel) return null;
2323

gaming-livestream/src/components/Chat/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {useState} from 'react';
1+
import React from 'react';
22
import {Chat} from 'stream-chat-react';
33

44
import {init} from 'emoji-mart';
@@ -13,7 +13,6 @@ import {useChecklist} from '../../hooks/useChecklistTasks';
1313

1414
import {useConnectUser} from '../../hooks/useConnectUser';
1515
import {useLayoutController} from '../../context/LayoutController';
16-
import type {Channel as ChannelT} from 'stream-chat';
1716
import type {StreamChatType} from '../../types';
1817
import {ChannelContainer} from "./ChannelContainer";
1918

0 commit comments

Comments
 (0)