Skip to content

Commit

Permalink
fixed: switching between behaviors causes infinite re-render
Browse files Browse the repository at this point in the history
  • Loading branch information
pongstr committed Dec 12, 2024
1 parent eff4a7f commit da7ac86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/behaviors/BehaviorBindingPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit da7ac86

Please sign in to comment.