Skip to content

Commit

Permalink
fix: properly resolve sendMessage during memoization
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Sep 18, 2024
1 parent 3497bcb commit 9af7ecd
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,15 @@ export const useCreateInputMessageInputContext = <
UploadProgressIndicator,
}),
// eslint-disable-next-line react-hooks/exhaustive-deps
[compressImageQuality, channelId, editingDep, initialValue, maxMessageLength, quotedMessageId],
[
compressImageQuality,
channelId,
editingDep,
initialValue,
maxMessageLength,
quotedMessageId,
sendMessage,
],
);

return inputMessageInputContext;
Expand Down

0 comments on commit 9af7ecd

Please sign in to comment.