File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @matechat/react " : patch
3
+ ---
4
+
5
+ Fix the lint error on ` useEffect ` in ` sender.tsx ` .
Original file line number Diff line number Diff line change @@ -46,14 +46,13 @@ export function Sender({
46
46
const [ message , setMessage ] = useState ( initialMessage ) ;
47
47
const [ isSending , setIsSending ] = useState ( false ) ;
48
48
49
- // biome-ignore lint/correctness/useExhaustiveDependencies: height adjustment
50
49
useEffect ( ( ) => {
51
50
if ( textareaRef . current ) {
52
51
textareaRef . current . style . height = "auto" ;
53
52
textareaRef . current . style . height = `${ textareaRef . current . scrollHeight } px` ;
54
53
}
55
- onMessageChange ?.( message || "" ) ;
56
- } , [ message ] ) ;
54
+ onMessageChange ?.( message ) ;
55
+ } , [ message , onMessageChange ] ) ;
57
56
58
57
const [ controller , setController ] = useState < AbortController | null > ( null ) ;
59
58
const handleSend = ( ) => {
You can’t perform that action at this time.
0 commit comments