Fix a bug in useSettings that causes an infinite loop. (https://github.com/woocommerce/woocommerce-admin/pull/6540)

This commit is contained in:
Sam Seay 2021-03-09 12:44:11 +13:00 committed by GitHub
parent 14e2becc9a
commit 9225fce382
2 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@ export const useSettings = ( group, settingsKeys = [] ) => {
isDirty: getIsDirty( group, settingsKeys ), isDirty: getIsDirty( group, settingsKeys ),
}; };
}, },
[ group, settingsKeys ] [ group, ...settingsKeys.sort() ]
); );
const { const {
persistSettingsForGroup, persistSettingsForGroup,

View File

@ -102,6 +102,7 @@ Release and roadmap notes are available on the [WooCommerce Developers Blog](htt
- Add: Remove Mollie promo note on install #6510 - Add: Remove Mollie promo note on install #6510
- Add: Remote Inbox Notifications rule to trigger when WooCommerce Admin is upgraded. #6040 - Add: Remote Inbox Notifications rule to trigger when WooCommerce Admin is upgraded. #6040
- Feature: Increase target audience for business feature step. #6508 - Feature: Increase target audience for business feature step. #6508
- Fix: Crash of Analytics > Settings page when Gutenberg is installed. #6540
== 2.1.0 == == 2.1.0 ==