The web scanner's camera loop starts once in useEffect and closed over the mount-time onScan handler, so switching modes (e.g. to Banquet) kept invoking the original ticket-check-in handler. Route onScan through a ref updated each render so the loop always calls the current handler. Native was unaffected. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| QRScanner.tsx | ||
| QRScanner.web.tsx | ||
| ResultOverlay.tsx | ||