Merge branch 'fix-1531' into 'main'

lexical: pass compose text from the reducer on mount

Closes #1531

See merge request soapbox-pub/soapbox!2759
This commit is contained in:
Alex Gleason 2023-09-26 03:59:00 +00:00
commit e509a9b177

View file

@ -100,7 +100,7 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
const anyMedia = compose.media_attachments.size > 0;
const [composeFocused, setComposeFocused] = useState(false);
const [text, setText] = useState('');
const [text, setText] = useState(compose.text);
const firstRender = useRef(true);
const formRef = useRef<HTMLDivElement>(null);