[bugfix] Correct postUpdateAction handling in slider component.
- Fixed bug where postUpdateAction was not properly passed as a prop to the slider component - Prevented infinite re-renders by removing postUpdateAction from the dependency array
This commit is contained in:
@@ -252,7 +252,7 @@ export const useSliderLogic = ({
|
||||
if (postUpdateAction) {
|
||||
postUpdateAction();
|
||||
}
|
||||
}, [current_value.data, postUpdateAction]);
|
||||
}, [current_value.data]);
|
||||
|
||||
return {
|
||||
ui_value,
|
||||
|
||||
Reference in New Issue
Block a user