Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3495469
D12023.id41017.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12023.id41017.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 8:45 AM (17 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2681211
Default Alt Text
D12023.id41017.diff (1 KB)
Attached To
Mode
D12023: [native] call fetchCommunityInfos from the community drawer
Attached
Detach File
Event Timeline
Log In to Comment