No more exporeted useMembersSubscription
This commit is contained in:
parent
0609aa687c
commit
7ceceecbb1
@ -812,7 +812,7 @@ export function useChannelsSubscription(guild: CombinedGuild) {
|
|||||||
* fetchError: Any error from fetching
|
* fetchError: Any error from fetching
|
||||||
* ]
|
* ]
|
||||||
*/
|
*/
|
||||||
export function useMembersSubscription(guild: CombinedGuild) {
|
function useMembersSubscription(guild: CombinedGuild) {
|
||||||
const fetchMembersFunc = useCallback(async () => {
|
const fetchMembersFunc = useCallback(async () => {
|
||||||
const members = await guild.fetchMembers();
|
const members = await guild.fetchMembers();
|
||||||
return members;
|
return members;
|
||||||
|
@ -136,7 +136,6 @@ export function useRecoilSelectedGuildMembers(): void {
|
|||||||
|
|
||||||
const lastFetchId = useRef<string | null>(null);
|
const lastFetchId = useRef<string | null>(null);
|
||||||
|
|
||||||
|
|
||||||
// TODO: Test this custom effect out
|
// TODO: Test this custom effect out
|
||||||
|
|
||||||
// Fetch initial value
|
// Fetch initial value
|
||||||
|
@ -9,7 +9,7 @@ import CombinedGuild from '../../guild-combined';
|
|||||||
import ChannelList from '../lists/channel-list';
|
import ChannelList from '../lists/channel-list';
|
||||||
import MemberList from '../lists/member-list';
|
import MemberList from '../lists/member-list';
|
||||||
import MessageList from '../lists/message-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 ChannelTitle from './channel-title';
|
||||||
import ConnectionInfo from './connection-info';
|
import ConnectionInfo from './connection-info';
|
||||||
import GuildTitle from './guild-title';
|
import GuildTitle from './guild-title';
|
||||||
|
Loading…
Reference in New Issue
Block a user