MCPcopy Create free account
hub / github.com/adobe/react-spectrum / setValues

Function setValues

packages/react-stately/src/slider/useSliderState.ts:268–271  ·  view source on GitHub ↗
(values: number[])

Source from the content-addressed store, hash-verified

266 const isDraggingsRef = useRef<boolean[]>(isDraggings);
267
268 let setValues = (values: number[]) => {
269 valuesRef.current = values;
270 setValuesState(values);
271 };
272
273 let setDraggings = (draggings: boolean[]) => {
274 isDraggingsRef.current = draggings;

Callers 1

updateValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected