No more exporeted useMembersSubscription

This commit is contained in:
Michael Peters 2022-01-29 17:07:24 -06:00
parent 0609aa687c
commit 7ceceecbb1
3 changed files with 2 additions and 3 deletions

View File

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

View File

@ -136,7 +136,6 @@ export function useRecoilSelectedGuildMembers(): void {
const lastFetchId = useRef<string | null>(null);
// TODO: Test this custom effect out
// Fetch initial value

View File

@ -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';