Bug 1873019 - Remove dependency from useEffect in LanguageSwitcher causing infinite...
commitb885a6f25dfe9568c937863e4912bb3de9b8c8a9
authornegin <nsauermann@mozilla.com>
Thu, 11 Jan 2024 20:29:09 +0000 (11 20:29 +0000)
committernegin <nsauermann@mozilla.com>
Thu, 11 Jan 2024 20:29:09 +0000 (11 20:29 +0000)
tree755364bb0005a963b081634b0b7b3187c12b0a37
parent761ca4cf49f85a7553725d2d2a73730e1b57f595
Bug 1873019  - Remove dependency from useEffect in LanguageSwitcher causing infinite re-renders r=omc-reviewers,Mardak,aminomancer

Temporarily remove screenIndex dependency from useEffect which is causing infinite re-renders and ultimately an unresponsive browser (likely because every time filtered screen is changing, it updates [screens as well](https://searchfox.org/mozilla-central/source/browser/components/aboutwelcome/content-src/components/MultiStageAboutWelcome.jsx#206) ). This is a quick fix to get into beta uplift.

Differential Revision: https://phabricator.services.mozilla.com/D198302
browser/components/aboutwelcome/content-src/components/LanguageSwitcher.jsx
browser/components/aboutwelcome/content/aboutwelcome.bundle.js