From 7ceceecbb1ef4f130900e36220d21c227d4c42a9 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Sat, 29 Jan 2022 17:07:24 -0600 Subject: [PATCH] No more exporeted useMembersSubscription --- src/client/webapp/elements/require/guild-subscriptions.ts | 2 +- src/client/webapp/elements/require/setup-guild-recoil.ts | 1 - src/client/webapp/elements/sections/guild.tsx | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/webapp/elements/require/guild-subscriptions.ts b/src/client/webapp/elements/require/guild-subscriptions.ts index 7c6dd6c..0ab8c6c 100644 --- a/src/client/webapp/elements/require/guild-subscriptions.ts +++ b/src/client/webapp/elements/require/guild-subscriptions.ts @@ -812,7 +812,7 @@ export function useChannelsSubscription(guild: CombinedGuild) { * fetchError: Any error from fetching * ] */ -export function useMembersSubscription(guild: CombinedGuild) { +function useMembersSubscription(guild: CombinedGuild) { const fetchMembersFunc = useCallback(async () => { const members = await guild.fetchMembers(); return members; diff --git a/src/client/webapp/elements/require/setup-guild-recoil.ts b/src/client/webapp/elements/require/setup-guild-recoil.ts index 49138c7..6c84399 100644 --- a/src/client/webapp/elements/require/setup-guild-recoil.ts +++ b/src/client/webapp/elements/require/setup-guild-recoil.ts @@ -136,7 +136,6 @@ export function useRecoilSelectedGuildMembers(): void { const lastFetchId = useRef(null); - // TODO: Test this custom effect out // Fetch initial value diff --git a/src/client/webapp/elements/sections/guild.tsx b/src/client/webapp/elements/sections/guild.tsx index 30470fb..8b62de3 100644 --- a/src/client/webapp/elements/sections/guild.tsx +++ b/src/client/webapp/elements/sections/guild.tsx @@ -9,7 +9,7 @@ import CombinedGuild from '../../guild-combined'; import ChannelList from '../lists/channel-list'; import MemberList from '../lists/member-list'; import MessageList from '../lists/message-list'; -import { useSelfMemberSubscription, useMembersSubscription, useChannelsSubscription } from '../require/guild-subscriptions'; +import { useSelfMemberSubscription, useChannelsSubscription } from '../require/guild-subscriptions'; import ChannelTitle from './channel-title'; import ConnectionInfo from './connection-info'; import GuildTitle from './guild-title';