You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
687 B
18 lines
687 B
10 months ago
|
# Scan Same QR Code More Than Once
|
||
|
|
||
|
You might have noticed that scanning the same QR code again doesn't work.
|
||
|
The thing is when a QR code is in the view of your the camera it's decoded multiple times a second.
|
||
|
You don't want to be flooded with decode events that often though.
|
||
|
That's why the last decoded QR code is "cached" and an event is only emitted, when the decoded content changes.
|
||
|
|
||
|
However this cache is reset when you change the `camera` prop.
|
||
|
We can exploit that to scan same QR codes multiple times in a row.
|
||
|
|
||
|
<ClientOnly>
|
||
|
<DemoWrapper component="ScanSameQrcodeMoreThanOnce" />
|
||
|
</ClientOnly>
|
||
|
|
||
|
### Source
|
||
|
|
||
|
<<< @/docs/.vuepress/components/demos/ScanSameQrcodeMoreThanOnce.vue
|