Skip to content

Commit da7ac86

Browse files
committed
fixed: switching between behaviors causes infinite re-render
1 parent eff4a7f commit da7ac86

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/behaviors/BehaviorBindingPicker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ export const BehaviorBindingPicker = ({
9090
param2: param2 || 0,
9191
});
9292
}
93-
}, [behaviorId, binding, layers, metadata, onBindingChanged, param1, param2]);
93+
// eslint-disable-next-line react-hooks/exhaustive-deps
94+
}, [behaviorId, param1, param2]);
9495

9596
useEffect(() => {
9697
setBehaviorId(binding.behaviorId);

0 commit comments

Comments
 (0)