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

Function isActive

packages/@react-spectrum/ai/src/useVoiceInput.ts:186–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184 // late onend/onerror after a new session started), so they can't flip the
185 // listening state, surface a st ale error, or clear a newer recognizer.
186 const isActive = () => setup.recognitionRef.current === recognition;
187
188 recognition.onstart = () => {
189 setup.setListening(true);

Callers 2

Layout.jsFile · 0.85
createRecognizerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected