From a1fcf5640a7ecde0d350d05d8650b45a81d0b2e5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 5 May 2023 01:31:19 +0000 Subject: [PATCH 1/2] Update react dependencies --- package.json | 6 +++--- yarn.lock | 46 +++++++++++++++++++++++----------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index 0e77434fc2..3ba0925ba2 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "react-helmet-async": "1.3.0", "react-i18next": "12.2.2", "react-redux": "7.2.9", - "react-router-dom": "6.10.0", + "react-router-dom": "6.11.1", "redux-saga": "1.2.3", "redux-state-sync": "3.1.4", "styled-components": "5.3.10", @@ -101,7 +101,7 @@ "@types/jest": "29.5.1", "@types/jest-when": "3.5.2", "@types/react": "17.0.58", - "@types/react-dom": "18.2.1", + "@types/react-dom": "18.2.3", "@types/react-redux": "7.1.25", "@types/react-test-renderer": "18.0.0", "@types/redux-state-sync": "3.1.5", @@ -120,7 +120,7 @@ "eslint-plugin-prettier": "4.2.1", "eslint-plugin-react": "7.32.2", "eslint-plugin-react-hooks": "4.6.0", - "eslint-plugin-react-refresh": "0.3.5", + "eslint-plugin-react-refresh": "0.4.1", "i18next-scanner": "4.2.0", "i18next-scanner-typescript": "1.1.1", "jest": "29.5.0", diff --git a/yarn.lock b/yarn.lock index dd37226ce8..7acb58e674 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3239,10 +3239,10 @@ redux-thunk "^2.4.2" reselect "^4.1.8" -"@remix-run/router@1.5.0": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.5.0.tgz#57618e57942a5f0131374a9fdb0167e25a117fdc" - integrity sha512-bkUDCp8o1MvFO+qxkODcbhSqRa6P2GXgrGZVpt0dCXNW2HCSCqYI0ZoAqEOSAjRWmmlKcYgFvN4B4S+zo/f8kg== +"@remix-run/router@1.6.1": + version "1.6.1" + resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.6.1.tgz#3a3a408481a3796f45223a549c2571517bc8af2d" + integrity sha512-YUkWj+xs0oOzBe74OgErsuR3wVn+efrFhXBWrit50kOiED+pvQe2r6MWY0iJMQU/mSVKxvNzL4ZaYvjdX+G7ZA== "@rushstack/eslint-patch@^1.1.0": version "1.1.0" @@ -3544,10 +3544,10 @@ resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz" integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw== -"@types/react-dom@18.2.1": - version "18.2.1" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.1.tgz#663b2612feb5f6431a70207430d7c04881b87f29" - integrity sha512-8QZEV9+Kwy7tXFmjJrp3XUKQSs9LTnE0KnoUb0YCguWBiNW0Yfb2iBMYZ08WPg35IR6P3Z0s00B15SwZnO26+w== +"@types/react-dom@18.2.3": + version "18.2.3" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.3.tgz#2fe492bb0e67047b7b43e18166d8f50d44e0525e" + integrity sha512-hxXEXWxFJXbY0LMj/T69mznqOZJXNtQMqVxIiirVAZnnpeYiD4zt+lPsgcr/cfWg2VLsxZ1y26vigG03prYB+Q== dependencies: "@types/react" "*" @@ -5775,10 +5775,10 @@ eslint-plugin-react-hooks@^4.3.0: resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.3.0.tgz#318dbf312e06fab1c835a4abef00121751ac1172" integrity sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA== -eslint-plugin-react-refresh@0.3.5: - version "0.3.5" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.3.5.tgz#0121e3f05f940250d3544bfaeff52e1c6adf4117" - integrity sha512-61qNIsc7fo9Pp/mju0J83kzvLm0Bsayu7OQSLEoJxLDCBjIIyb87bkzufoOvdDxLkSlMfkF7UxomC4+eztUBSA== +eslint-plugin-react-refresh@0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.1.tgz#e61a1ee4e06180f07ab753fa6fd173b4d8df95ec" + integrity sha512-QgrvtRJkmV+m4w953LS146+6RwEe5waouubFVNLBfOjXJf6MLczjymO8fOcKj9jMS8aKkTCMJqiPu2WEeFI99A== eslint-plugin-react@7.32.2, eslint-plugin-react@^7.27.1: version "7.32.2" @@ -9379,20 +9379,20 @@ react-refresh@^0.9.0: resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.9.0.tgz#71863337adc3e5c2f8a6bfddd12ae3bfe32aafbf" integrity sha512-Gvzk7OZpiqKSkxsQvO/mbTN1poglhmAV7gR/DdIrRrSMXraRQQlfikRJOr3Nb9GTMPC5kof948Zy6jJZIFtDvQ== -react-router-dom@6.10.0: - version "6.10.0" - resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.10.0.tgz#090ddc5c84dc41b583ce08468c4007c84245f61f" - integrity sha512-E5dfxRPuXKJqzwSe/qGcqdwa18QiWC6f3H3cWXM24qj4N0/beCIf/CWTipop2xm7mR0RCS99NnaqPNjHtrAzCg== +react-router-dom@6.11.1: + version "6.11.1" + resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.11.1.tgz#af226bae950deb437208a606a47cf5c2d72c55dc" + integrity sha512-dPC2MhoPeTQ1YUOt5uIK376SMNWbwUxYRWk2ZmTT4fZfwlOvabF8uduRKKJIyfkCZvMgiF0GSCQckmkGGijIrg== dependencies: - "@remix-run/router" "1.5.0" - react-router "6.10.0" + "@remix-run/router" "1.6.1" + react-router "6.11.1" -react-router@6.10.0: - version "6.10.0" - resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.10.0.tgz#230f824fde9dd0270781b5cb497912de32c0a971" - integrity sha512-Nrg0BWpQqrC3ZFFkyewrflCud9dio9ME3ojHCF/WLsprJVzkq3q3UeEhMCAW1dobjeGbWgjNn/PVF6m46ANxXQ== +react-router@6.11.1: + version "6.11.1" + resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.11.1.tgz#6e58458c03e16834dda2b433c6adb9e7c2b1d7a8" + integrity sha512-OZINSdjJ2WgvAi7hgNLazrEV8SGn6xrKA+MkJe9wVDMZ3zQ6fdJocUjpCUCI0cNrelWjcvon0S/QK/j0NzL3KA== dependencies: - "@remix-run/router" "1.5.0" + "@remix-run/router" "1.6.1" react-shallow-renderer@^16.15.0: version "16.15.0" From 0fa7f4a48e646895fc87ef9f65f6b02f9173a7cb Mon Sep 17 00:00:00 2001 From: lukaw3d Date: Fri, 5 May 2023 04:19:19 +0200 Subject: [PATCH 2/2] Remove workaround for unstable useNavigate (updated react-router-dom) --- src/app/useRouteRedirects.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/useRouteRedirects.tsx b/src/app/useRouteRedirects.tsx index a33e052036..1a1d7e1560 100644 --- a/src/app/useRouteRedirects.tsx +++ b/src/app/useRouteRedirects.tsx @@ -12,8 +12,5 @@ export const useRouteRedirects = () => { if (address) { navigate(`/account/${address}`) } - // omit navigate dependency as it is not stable - // https://github.com/remix-run/react-router/issues/7634 - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [address]) + }, [address, navigate]) }