Skip to content

Commit

Permalink
fix: add effect dependencies (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela authored Jan 28, 2025
1 parent a2b7637 commit 2c60c63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gaming-livestream/src/components/Chat/ChannelContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const ChannelContainer = () => {
};

loadChat();
}, [client]);
}, [client, setActiveChannel]);

if (!channel) return null;

Expand Down
3 changes: 1 addition & 2 deletions gaming-livestream/src/components/Chat/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useState} from 'react';
import React from 'react';
import {Chat} from 'stream-chat-react';

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

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

Expand Down

0 comments on commit 2c60c63

Please sign in to comment.