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

Function handler

packages/react-aria/src/interactions/useFocusVisible.ts:347–349  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

345 let [modality, setModality] = useState(currentModality);
346 useEffect(() => {
347 let handler = () => {
348 setModality(currentModality);
349 };
350
351 changeHandlers.add(handler);
352 return () => {

Callers 5

triggerChangeHandlersFunction · 0.70
createEventHandlerFunction · 0.70
useSelectionChangeFunction · 0.50
listenerFunction · 0.50

Calls 3

isKeyboardFocusEventFunction · 0.85
fnFunction · 0.85
isFocusVisibleFunction · 0.85

Tested by

no test coverage detected