[Perf] Fix UiLanguageController, i18next, re-rendering unnecessarily.

This commit is contained in:
Sakamoto Shiina
2024-09-24 09:42:43 +09:00
parent 465e97d206
commit 97b047a09e

View File

@@ -111,7 +111,7 @@ const UiLanguageController = () => {
useEffect(() => {
i18n.changeLanguage(currentUiLanguage.data);
}, [currentUiLanguage]);
}, [currentUiLanguage.data]);
return null;
};