Skip to content

Commit

Permalink
fix: revoir la durée du cache de la liste des membres d'une communauté
Browse files Browse the repository at this point in the history
  • Loading branch information
ocruze committed Oct 1, 2024
1 parent bf4a82f commit aff8533
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/entrepot/pages/communities/CommunityMembers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ const CommunityMembers: FC<CommunityMembersProps> = ({ communityId, userId }) =>
const { data: communityMembers, isLoading: isLoadingMembers } = useQuery({
queryKey: RQKeys.community_members(communityId),
queryFn: ({ signal }) => api.community.getMembers(communityId, { signal }),
staleTime: communityId ? Infinity : 20000,
enabled: !!communityId,
staleTime: 20000,
});

const communityMemberIds = useMemo(() => {
Expand Down

0 comments on commit aff8533

Please sign in to comment.