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

Function onChange

packages/@react-spectrum/s2/src/useMediaQuery.ts:28–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27 let mq = window.matchMedia(query);
28 let onChange = evt => {
29 setMatches(evt.matches);
30 };
31
32 mq.addListener(onChange);
33 return () => {

Callers 4

handleSelectionChangeFunction · 0.50
EditableTableFunction · 0.50
ActionEditableTableFunction · 0.50

Calls

no outgoing calls

Tested by 2

EditableTableFunction · 0.40
ActionEditableTableFunction · 0.40