Skip to content

fix(web): stop Scan camera cleanly so other tabs do not blank - #26

Merged
nghiacc merged 1 commit into
mainfrom
cursor/fix-scan-tab-blank-9650
Oct 24, 2026
Merged

nghiacc merged 1 commit into
mainfrom
cursor/fix-scan-tab-blank-9650

Conversation

@nghiacc

@nghiacc nghiacc commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

html5-qrcode clear() throws while stop() is still in flight; that uncaught cleanup error wiped the React tree when leaving the Scan tab. Await stop only, skip clear(), and guard StrictMode / in-flight start.

html5-qrcode clear() throws while stop() is still in flight; that uncaught
cleanup error wiped the React tree when leaving the Scan tab. Await stop
only, skip clear(), and guard StrictMode / in-flight start.

Co-authored-by: nghiacc <nghiacc@yahoo.com>
@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nghiacc
nghiacc merged commit 3d65549 into main Oct 24, 2026
1 of 2 checks passed
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.

2 participants