We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 646935d commit 96507f8Copy full SHA for 96507f8
src/features/community/list/GuestCommunitiesList.tsx
@@ -76,10 +76,12 @@ export default function GuestCommunitiesList({ actor }: CommunitiesListProps) {
76
const [oldClient, setOldClient] = useState<typeof client | undefined>(
77
undefined,
78
);
79
+ const [oldMode, setOldMode] = useState<typeof mode | undefined>(undefined);
80
- if (oldClient !== client) {
81
- setOldClient(client);
+ if (oldClient !== client || oldMode !== mode) {
82
hardUpdate();
83
+ setOldClient(client);
84
+ setOldMode(mode);
85
}
86
87
if (communities === undefined) return <CenteredSpinner />;
0 commit comments