This commit is contained in:
Pradeeppon01 2024-07-13 19:38:57 +05:30
parent aee9f5c534
commit 9024b77d1d
1 changed files with 9 additions and 0 deletions

View File

@ -86,6 +86,7 @@ const BarcodeScanner = () => {
}, []);
const reinitializeScanner = () => {
console.log("calling reinitialize scanner ......")
setScanResult(null);
setBarcodeInfo([]);
setMarksData([]);
@ -95,7 +96,15 @@ const BarcodeScanner = () => {
// }
};
useEffect(()=>{
console.log("scan result ========== ",scanResult)
console.log("barcode Info ======= ",barcodeInfo)
console.log("marksData ========= ",marksData)
},[scanResult,barcodeInfo,marksData])
useEffect(() => {
console.log("Calling the use effect ..... scan result changed ...")
if (!scanResult) {
const readerEle = document.getElementById("reader");
console.log("Reader ELe ===== ", readerEle);