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

This commit is contained in:
Claire 2024-08-19 16:41:32 +02:00 committed by GitHub
parent 40f6631ac9
commit 1e612c5a09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 42 additions and 55 deletions

View file

@ -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 (