Skip to content

Sometimes camera feed get rendered twice in Nextjs reactStrictMode #2

Open
@kaushalyap

Description

@kaushalyap

First of all thanks for library and making it React 18 compatible, it is hard to find a maintained QR reader library these days. But I am experiencing a bug with your library, which is described below.

At first I was using https://github.com/scanapp-org/html5-qrcode-react which make a wrapper around html5-qrcode library, in that also sometimes camera video feed get rendered twice(one below the other, with two stop scanning buttons), I thought some mis handled case in his code, so I tried your library hoping this case may be handle by your library but even in your library camera feed get rendered twice. This only seem to happen in development mode of Nextjs when reactStrictMode: true,.

I am using following package versions

"next": "^12.3.4",
"react": "18.2.0",
"react-dom": "18.2.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    html5-qrcode-bugBugs that are unrelated to this library but presents in the original html5-qrcode-library.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions