You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starting the QR code scanner and then attempting to stop the scanning before it completes (e.g., by clicking the back button), the following error occurs: TypeError: Cannot read properties of undefined (reading 'stop')
Steps to Reproduce:
Initialize QR Scanning:
Call the initiateQrScanning(timer) function to start the QR code scanner.
Attempt to Stop Scanning:
Before the scanning operation completes, call the terminateScanning() function (for example, by navigating away from the page or clicking the back button).
Expected Behavior:
The QR scanner should stop gracefully without throwing any errors, even if it is stopped before the scanning is complete.
Actual Behavior:
The following error is encountered:
TypeError: Cannot read properties of undefined (reading 'stop')
at terminateScanning (path/to/your/hook/file.js:line:column)
at path/to/your/component/file.js:line:column
...
When starting the QR code scanner and then attempting to stop the scanning before it completes (e.g., by clicking the back button), the following error occurs:
TypeError: Cannot read properties of undefined (reading 'stop')
Steps to Reproduce:
Initialize QR Scanning:
Call the initiateQrScanning(timer) function to start the QR code scanner.
Attempt to Stop Scanning:
Before the scanning operation completes, call the terminateScanning() function (for example, by navigating away from the page or clicking the back button).
Expected Behavior:
The QR scanner should stop gracefully without throwing any errors, even if it is stopped before the scanning is complete.
Actual Behavior:
The following error is encountered:
Code Snippet:
The text was updated successfully, but these errors were encountered: