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

fix(258): improve useEffect call #257

Closed

Conversation

spaudanjo
Copy link

@spaudanjo spaudanjo commented Jun 9, 2022

  • add missing dependencies
  • add additional effect which stops the scanner when the component unmounts

Closes #258

HINT:
I only tested this roughly on my Chrome (Mac) and Chrome (Android) the new expected behaviour works. Not sure about potential breaking changes or performance drops (e.g. because of missing stop calls to previous versions of BrowserQRCodeReader).

@spaudanjo spaudanjo changed the title fix(177): improve useEffect call fix(258): improve useEffect call Jun 9, 2022
* add missing dependencies
* add additional effect which stops the scanner when the component unmounts
@spaudanjo spaudanjo force-pushed the 177-improve-use-effect branch from d0eff23 to 1a86932 Compare June 9, 2022 09:29
@spaudanjo spaudanjo closed this Jun 9, 2022
@spaudanjo
Copy link
Author

Referencing wrong issue number originally - this is the correct PR: #259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant