Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop stream even when then component is unloaded before preview is shown #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlexDanault
Copy link

@AlexDanault AlexDanault commented Aug 9, 2021

Clone of a PR that never made it to master on the parent repo ( JodusNodus/react-qr-reader#113 )

There is a bug when you quickly load and unload the camera component, the camera will stay on even if the component got destroyed.

This fix was tested on desktop and Android.

The code change touching supported was to make the package compilable under my version of node.

P.S. : You'll need to gulp to compile my code as I didn't want to submit compiled code with this PR..

Thanks !

@AlexDanault AlexDanault changed the title Stop stream even when then component il unloaded before preview is shown Stop stream even when then component is unloaded before preview is shown Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant