Skip to content

Commit 96507f8

Browse files
authored
fix: communities list not loading on guest instance (#2157)
1 parent 646935d commit 96507f8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/features/community/list/GuestCommunitiesList.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@ export default function GuestCommunitiesList({ actor }: CommunitiesListProps) {
7676
const [oldClient, setOldClient] = useState<typeof client | undefined>(
7777
undefined,
7878
);
79+
const [oldMode, setOldMode] = useState<typeof mode | undefined>(undefined);
7980

80-
if (oldClient !== client) {
81-
setOldClient(client);
81+
if (oldClient !== client || oldMode !== mode) {
8282
hardUpdate();
83+
setOldClient(client);
84+
setOldMode(mode);
8385
}
8486

8587
if (communities === undefined) return <CenteredSpinner />;

0 commit comments

Comments
 (0)