diff --git a/js/web/src/components/stream/chat-input.tsx b/js/web/src/components/stream/chat-input.tsx index ec7e09822..7ecc9132a 100644 --- a/js/web/src/components/stream/chat-input.tsx +++ b/js/web/src/components/stream/chat-input.tsx @@ -9,6 +9,7 @@ import { exitSuggestion, Suggestion } from "@tiptap/suggestion"; import type { SkinTone } from "frimousse"; import { Reply, Smile, X } from "lucide-react"; import { useCallback, useMemo, useRef, useState } from "react"; +import { flushSync } from "react-dom"; import { useTranslation } from "react-i18next"; import type { ChatMessageViewHydrated } from "streamplace"; import { useStore } from "zustand";