From fc6bb3caef8b4de46fd3296ec9789a3f0ee51cf5 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 4 Jan 2023 20:42:48 -0500 Subject: [PATCH] fix: Unstable t method causing stars.list to fetch run multiple times. Seems this behavior changed in the recent dep bump --- app/components/Sidebar/components/Starred.tsx | 2 +- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/components/Sidebar/components/Starred.tsx b/app/components/Sidebar/components/Starred.tsx index 1b4b6cead..4ee247968 100644 --- a/app/components/Sidebar/components/Starred.tsx +++ b/app/components/Sidebar/components/Starred.tsx @@ -45,7 +45,7 @@ function Starred() { React.useEffect(() => { fetchResults(); - }, [fetchResults]); + }, []); const handleShowMore = async () => { await fetchResults(displayedStarsCount); diff --git a/package.json b/package.json index 7acc1bd67..396ccb565 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "fuzzy-search": "^3.2.1", "gemoji": "6.x", "http-errors": "2.0.0", - "i18next": "^22.4.6", + "i18next": "^22.4.8", "i18next-http-backend": "^2.1.1", "immutable": "^4.0.0", "inline-css": "^4.0.1", diff --git a/yarn.lock b/yarn.lock index 426e5ea60..8d03e6319 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8831,10 +8831,10 @@ i18next-parser@^7.1.0: vinyl-fs "^3.0.2" vue-template-compiler "^2.6.11" -i18next@^22.0.4, i18next@^22.4.6: - version "22.4.6" - resolved "https://registry.yarnpkg.com/i18next/-/i18next-22.4.6.tgz#876352c3ba81bdfedc38eeda124e2bbd05f46988" - integrity sha512-9Tm1ezxWyzV+306CIDMBbYBitC1jedQyYuuLtIv7oxjp2ohh8eyxP9xytIf+2bbQfhH784IQKPSYp+Zq9+YSbw== +i18next@^22.0.4, i18next@^22.4.8: + version "22.4.8" + resolved "https://registry.yarnpkg.com/i18next/-/i18next-22.4.8.tgz#7a3c5d26a93e8e5f32eee07b58484e2f721fb45b" + integrity sha512-XSOy17ZWqflOiJRYE/dzv6vDle2Se32dnHREHb93UnZzZ1+UnvQ8yKtt1fpNL3zvXz5AwCqqixrtTVZmRetaiQ== dependencies: "@babel/runtime" "^7.20.6"