I got the error above just by dragging. The error only shows up if I setValue. This is how I init the component
<Slider
range
allowCross={false}
defaultValue={[filterOptions.price[0], filterOptions.price[1]]}
onChange={(value) => {
if (value != null) {
// const test = value[0]
// console.log(test) <--- will log the right information
setValue(test) <--- cause the error above
}
}}
style={{ marginLeft: "6px" }}
/>
I got the error above just by dragging. The error only shows up if I
setValue
. This is how I init the component