this repo has no description
0
fork

Configure Feed

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

Fix promise error with fetching followed hashtags

Remove memoization for now

+2 -10
+2 -10
src/components/shortcuts-settings.jsx
··· 466 466 maxAge: FETCH_MAX_AGE, 467 467 }, 468 468 ); 469 - const fetchFollowedHashtags = pmem( 470 - () => { 471 - const { masto } = api(); 472 - return masto.v1.followedTags.list(); 473 - }, 474 - { 475 - maxAge: FETCH_MAX_AGE, 476 - }, 477 - ); 478 469 479 470 function ShortcutForm({ 480 471 onSubmit, ··· 486 477 console.log('shortcut', shortcut); 487 478 const editMode = !!shortcut; 488 479 const [currentType, setCurrentType] = useState(shortcut?.type || null); 480 + const { masto } = api(); 489 481 490 482 const [uiState, setUIState] = useState('default'); 491 483 const [lists, setLists] = useState([]); ··· 508 500 (async () => { 509 501 if (currentType !== 'hashtag') return; 510 502 try { 511 - const iterator = fetchFollowedHashtags(); 503 + const iterator = masto.v1.followedTags.list(); 512 504 const tags = []; 513 505 do { 514 506 const { value, done } = await iterator.next();