Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
handleSelectionChange
Function · 0.50
EditableTable
Function · 0.50
ActionEditableTable
Function · 0.50
TableView.stories.tsx
File · 0.50
Calls
no outgoing calls
Tested by
2
EditableTable
Function · 0.40
ActionEditableTable
Function · 0.40