Member list stops showing online members after a few minutes

(#592) Bug Fixed ui

Summary

image

Steps to reproduce

  1. load community
  2. wait a few minutes
  3. notice the list drops
  • 608593542-b917eb48-28b0-4062-9d6f-66558c677cb8.png

    608593542-b917eb48-28b0-4062-9d6f-66558c677cb8.png

    265×205 | 4 kB

4 comments

Sign in with Fluxer to comment and vote.
Comment by @RainerGevers
RexSystem 1 vote originally by @RainerGevers on GitHub
Just to help the devs when they see this. Would you be able to attach some logs from the gateway when this happens so they can see how/why it breaks?
Comment by @Kenkoman
RexSystem 1 vote originally by @Kenkoman on GitHub
i'm also observing the member list only appearing half of the times you tab into a guild, otherwise appearing like the screenshot in OP. only have a few members in this guild, isn't large
Comment by @vulpeace
RexSystem 1 vote originally by @vulpeace on GitHub
The issue does not seem to stem from the backend (by the way, for me the gateway container's log is empty), probably concerns this effect?... Another observation: if a displayed server member changes their status, then the whole list refreshes and works fine until the next time fluxer's tab goes inactive. https://github.com/fluxerapp/fluxer/blob/main/fluxer_app/src/features/member/hooks/useMemberListSubscription.ts
	useEffect(() => {
		if (!enabled) {
			return;
		}
		if (isWindowFocused) {
			MemberSidebar.claimMemberListSubscription(guildId, channelId, ownerId);
			sendSubscriptionEvent({type: 'memberListSubscription.resumed'});
			resubscribe();
			return;
		}
		pauseSubscription();
	}, [guildId, channelId, enabled, isWindowFocused, ownerId, pauseSubscription, resubscribe, sendSubscriptionEvent]);