Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
fix: text flahes when typing
Browse files Browse the repository at this point in the history
  • Loading branch information
clement2026 committed Sep 29, 2023
1 parent 22f9341 commit 9da6b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/home/chat-window/prompt/prompt-editor-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type TextAreaProps = {
}

const TextArea: React.FC<TextAreaProps> = ({messageProxy}) => {
const {role, content} = useSnapshot(messageProxy)
const {role, content} = useSnapshot(messageProxy,{sync:true})
const textAreaRef = useRef<HTMLTextAreaElement>(null)

useEffect(() => {
Expand Down

0 comments on commit 9da6b33

Please sign in to comment.