Skip to content

Commit b947266

Browse files
committed
fix: lint issues
1 parent d4237bb commit b947266

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,9 +1721,7 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
17211721
// once our memoization issues are fixed in most places in the app or we move to a reactive state store.
17221722
const sendMessageRef = useRef<InputMessageInputContextValue['sendMessage']>(sendMessage);
17231723
sendMessageRef.current = sendMessage;
1724-
const sendMessageStable = useCallback<
1725-
InputMessageInputContextValue<StreamChatGenerics>['sendMessage']
1726-
>((...args) => {
1724+
const sendMessageStable = useCallback<InputMessageInputContextValue['sendMessage']>((...args) => {
17271725
return sendMessageRef.current(...args);
17281726
}, []);
17291727

0 commit comments

Comments
 (0)