Skip to content

refactor([issue-4283]): share mic capture re-entrancy guard - #4299

Merged
atomantic merged 2 commits into
mainfrom
next/issue-4283
Aug 15, 2026
Merged

refactor([issue-4283]): share mic capture re-entrancy guard#4299
atomantic merged 2 commits into
mainfrom
next/issue-4283

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Closes #4283

Summary

  • Extract the pending microphone permission and generation guard into useAsyncCaptureGuard.
  • Reuse it from sing-to-score and sing-to-verify without changing capture teardown behavior.
  • Export and document the shared hook, with focused guard tests.

Test plan

  • npm test -- --run useAsyncCaptureGuard.test.js useSingToScore.test.js useSingToVerify.test.js
  • npm test (client): 650 files and 7,935 tests passed.
  • npm run lint (client)
  • npm run build (client)
  • git diff --check

@atomantic
atomantic merged commit e39db0c into main Aug 15, 2026
7 checks passed
@atomantic
atomantic deleted the next/issue-4283 branch August 15, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extract shared mic-capture re-entrancy guard from useSingToScore/useSingToVerify

1 participant