Fix 'setting.Get' runaway calls

## Issue
60 setting.Get calls spiked since October

It was called 24 times per livestream page load.

## Notes
The effect was intended to be a one-time effect, but the dependency was changed in 2f4dedfb
This commit is contained in:
infinite-persistence 2021-10-14 16:09:28 +08:00 committed by infinite-persistence
parent 5f55a3f128
commit ea516f88dc

View file

@ -407,7 +407,7 @@ export function CommentCreate(props: Props) {
if (!channelSettings && channelId) {
doFetchCreatorSettings(channelId);
}
}, [channelId, channelSettings, doFetchCreatorSettings]);
}, []); // eslint-disable-line react-hooks/exhaustive-deps
// Notifications: Fetch top-level comments to identify if it has been deleted and can reply to it
React.useEffect(() => {