We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4237bb commit b947266Copy full SHA for b947266
package/src/components/Channel/Channel.tsx
@@ -1721,9 +1721,7 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
1721
// once our memoization issues are fixed in most places in the app or we move to a reactive state store.
1722
const sendMessageRef = useRef<InputMessageInputContextValue['sendMessage']>(sendMessage);
1723
sendMessageRef.current = sendMessage;
1724
- const sendMessageStable = useCallback<
1725
- InputMessageInputContextValue<StreamChatGenerics>['sendMessage']
1726
- >((...args) => {
+ const sendMessageStable = useCallback<InputMessageInputContextValue['sendMessage']>((...args) => {
1727
return sendMessageRef.current(...args);
1728
}, []);
1729
0 commit comments