Skip to content

Commit 03f6346

Browse files
committed
fix(common): useSelect rendering loop
1 parent 271e466 commit 03f6346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/src/use-select/use-select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const useSelect = ({
114114
}, [loadOptionsStr, loadOptionsChangeCounter]);
115115

116116
useEffect(() => {
117-
if (state.isInitialLoaded) {
117+
if (!isEqual(state.options, propsOptions) && state.isInitialLoaded) {
118118
if (!noValueUpdates && value && !propsOptions.map(({ value }) => value).includes(value)) {
119119
onChange(undefined);
120120
}

0 commit comments

Comments
 (0)