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:
parent
5f55a3f128
commit
ea516f88dc
1 changed files with 1 additions and 1 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in a new issue