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

Function setValues

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

Source from the content-addressed store, hash-verified

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

Callers 1

updateValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected