Skip to content

Commit

Permalink
remove render reads
Browse files Browse the repository at this point in the history
  • Loading branch information
thosmos committed Oct 30, 2024
1 parent 6361421 commit c15dc93
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/slide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ export const Slider: FC<AwesomeSliderProps> = memo(function Slider({
);
return clamp(index, 0, step);
}, [
maximumValue.value,
minimumValue.value,
progress.value,
maximumValue,
minimumValue,
progress,
snappingEnabled,
step,
]);
Expand Down Expand Up @@ -412,7 +412,7 @@ export const Slider: FC<AwesomeSliderProps> = memo(function Slider({
},
],
};
}, [progress, minimumValue, maximumValue, width.value]);
}, [progress, minimumValue, maximumValue, width]);

const animatedBubbleStyle = useAnimatedStyle(() => {
let translateX = 0;
Expand Down Expand Up @@ -521,14 +521,14 @@ export const Slider: FC<AwesomeSliderProps> = memo(function Slider({
);
}
}, [
maximumValue.value,
minimumValue.value,
sliderTotalValue.value,
maximumValue,
minimumValue,
sliderTotalValue,
step,
thumbIndex.value,
thumbValue.value,
thumbIndex,
thumbValue,
thumbWidth,
width.value,
width,
snappingEnabled,
]);
/**
Expand All @@ -548,13 +548,13 @@ export const Slider: FC<AwesomeSliderProps> = memo(function Slider({
}
},
[
markLeftArr.value,
sliderTotalValue.value,
markLeftArr,
sliderTotalValue,
step,
thumbIndex.value,
thumbIndex,
thumbWidth,
width.value,
minimumValue.value,
width,
minimumValue,
snappingEnabled,
]
);
Expand Down Expand Up @@ -636,7 +636,7 @@ export const Slider: FC<AwesomeSliderProps> = memo(function Slider({
thumbIndex,
thumbValue,
thumbWidth,
width.value,
width,
xToProgress,
snappingEnabled,
]
Expand Down

0 comments on commit c15dc93

Please sign in to comment.