Skip to content

timeout prop for Barcode scanning? #706

Open
@xtl-geiger

Description

@xtl-geiger

Is your feature request related to a problem? Please describe.
For most test devices scanning works properly.
Whenever I scan with some specific devices that somehow scan very quickly however, I sometimes end up with duplicate barcodes, despite saving them in a local state and checking if duplicates are already in a map before each scan.

Describe the solution you'd like
I would like to have a timeout prop to specify a scan timeout in milliseconds after each scan.

Describe alternatives you've considered
Saving in a state seems not to work fully with these cases. It seems the Camera Barcode Reader triggers multiple times before the new state with the current barcode is set.
Using a timeout also does not guarantee that the duplicates are nor scanned. It is a similar issue compared to the map duplicate check it seems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions