MCPcopy Index your code
hub / github.com/codeaashu/claude-code / updateState

Function updateState

src/hooks/useVoice.ts:275–282  ·  view source on GitHub ↗
(newState: VoiceState)

Source from the content-addressed store, hash-verified

273 onErrorRef.current = onError
274
275 function updateState(newState: VoiceState): void {
276 stateRef.current = newState
277 setState(newState)
278 setVoiceState(prev => {
279 if (prev.voiceState === newState) return prev
280 return { ...prev, voiceState: newState }
281 })
282 }
283
284 const cleanup = useCallback((): void => {
285 // Stale any in-flight session (main connection isStale(), replay

Callers 4

finishRecordingFunction · 0.85
startRecordingSessionFunction · 0.85
attemptConnectFunction · 0.85
useVoiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected