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

This commit is contained in:
Sakamoto Shiina committed 2024-09-24 09:42:43 +09:00
1 parent 465e97d206
commit 97b047a09e
1 file changed
+1 -1
+1 -1
View File
@@ -111,7 +111,7 @@ const UiLanguageController = () => {
useEffect(() => {
i18n.changeLanguage(currentUiLanguage.data);
}, [currentUiLanguage]);
}, [currentUiLanguage.data]);
return null;
};