this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Pass UID across composer popups

+9 -3
+7 -3
src/components/compose.jsx
··· 81 81 }) { 82 82 console.warn('RENDER COMPOSER'); 83 83 const [uiState, setUIState] = useState('default'); 84 - const UID = useMemo(() => uid(), []); 85 - console.log('Compose UID', UID); 84 + const UID = useRef(uid()); 85 + console.log('Compose UID', UID.current); 86 86 87 87 const currentAccount = getCurrentAccount(); 88 88 const currentAccountInfo = currentAccount.info; ··· 178 178 } 179 179 if (draftStatus) { 180 180 const { 181 + uid, 181 182 status, 182 183 spoilerText, 183 184 visibility, ··· 186 187 poll, 187 188 mediaAttachments, 188 189 } = draftStatus; 190 + UID.current = uid; 189 191 const composablePoll = !!poll?.options && { 190 192 ...poll, 191 193 options: poll.options.map((o) => o?.title || o), ··· 384 386 editStatus, 385 387 replyToStatus, 386 388 draftStatus: { 389 + uid: UID.current, 387 390 status: textareaRef.current.value, 388 391 spoilerText: spoilerTextRef.current.value, 389 392 visibility, ··· 459 462 editStatus, 460 463 replyToStatus, 461 464 draftStatus: { 465 + uid: UID.current, 462 466 status: textareaRef.current.value, 463 467 spoilerText: spoilerTextRef.current.value, 464 468 visibility, ··· 630 634 ); 631 635 } else { 632 636 newStatus = await masto.v1.statuses.create(params, { 633 - idempotencyKey: UID, 637 + idempotencyKey: UID.current, 634 638 }); 635 639 } 636 640 setUIState('default');
+2
src/compose.jsx
··· 74 74 ); 75 75 } 76 76 77 + console.debug('OPEN COMPOSE'); 78 + 77 79 return ( 78 80 <Compose 79 81 editStatus={editStatus}