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

Function update

packages/@react-spectrum/ai/src/loader/react.tsx:405–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

403 }
404 let mq = window.matchMedia('(prefers-reduced-motion: reduce)');
405 let update = () => {
406 setReducedMotion(mq.matches);
407 };
408
409 update();
410 mq.addEventListener('change', update);

Callers 1

useReducedMotionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected