Page MenuHomePhabricator

D12023.diff
No OneTemporary

D12023.diff

diff --git a/native/navigation/community-drawer-content.react.js b/native/navigation/community-drawer-content.react.js
--- a/native/navigation/community-drawer-content.react.js
+++ b/native/navigation/community-drawer-content.react.js
@@ -7,6 +7,10 @@
import { SafeAreaView } from 'react-native-safe-area-context';
import { useSelector } from 'react-redux';
+import {
+ fetchCommunityInfosActionTypes,
+ useFetchCommunityInfos,
+} from 'lib/actions/community-actions.js';
import {
fetchPrimaryInviteLinkActionTypes,
useFetchPrimaryInviteLinks,
@@ -47,6 +51,8 @@
const styles = useStyles(unboundStyles);
const callFetchPrimaryLinks = useFetchPrimaryInviteLinks();
+ const fetchCommunityInfos = useFetchCommunityInfos();
+
const dispatchActionPromise = useDispatchActionPromise();
const drawerStatus = useDrawerStatus();
React.useEffect(() => {
@@ -57,7 +63,16 @@
fetchPrimaryInviteLinkActionTypes,
callFetchPrimaryLinks(),
);
- }, [callFetchPrimaryLinks, dispatchActionPromise, drawerStatus]);
+ void dispatchActionPromise(
+ fetchCommunityInfosActionTypes,
+ fetchCommunityInfos(),
+ );
+ }, [
+ callFetchPrimaryLinks,
+ dispatchActionPromise,
+ drawerStatus,
+ fetchCommunityInfos,
+ ]);
const [expanded, setExpanded] = React.useState<Set<string>>(() => {
if (communitiesSuffixed.length === 1) {

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 8:45 AM (17 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2681211
Default Alt Text
D12023.diff (1 KB)

Event Timeline