Refactor some actions to be proper async actions instead of passing a continuation (#31453)

This commit is contained in:
Claire authored and GitHub committed 2024-08-19 14:41:32 +00:00
1 parent 40f6631ac9
commit 1e612c5a09
5 files changed
+42 -55

No files matched your search

@@ -36,13 +36,13 @@ export const LinkTimeline: React.FC<{
const handleLoadMore = useCallback(
(maxId: string) => {
dispatch(expandLinkTimeline(decodedUrl, { maxId }));
void dispatch(expandLinkTimeline(decodedUrl, { maxId }));
},
[dispatch, decodedUrl],
);
useEffect(() => {
dispatch(expandLinkTimeline(decodedUrl));
void dispatch(expandLinkTimeline(decodedUrl));
}, [dispatch, decodedUrl]);
return (