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:
commit
e509a9b177
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue