From da7ac86e9d843cba4683f5d48f548f05ea5e771b Mon Sep 17 00:00:00 2001 From: Pongstr Date: Fri, 13 Dec 2024 01:00:13 +0200 Subject: [PATCH] fixed: switching between behaviors causes infinite re-render --- src/behaviors/BehaviorBindingPicker.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/behaviors/BehaviorBindingPicker.tsx b/src/behaviors/BehaviorBindingPicker.tsx index c6926a0..bc225da 100644 --- a/src/behaviors/BehaviorBindingPicker.tsx +++ b/src/behaviors/BehaviorBindingPicker.tsx @@ -90,7 +90,8 @@ export const BehaviorBindingPicker = ({ param2: param2 || 0, }); } - }, [behaviorId, binding, layers, metadata, onBindingChanged, param1, param2]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [behaviorId, param1, param2]); useEffect(() => { setBehaviorId(binding.behaviorId);