Skip to content

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

Development

Successfully merging this pull request may close these issues.

Improve useEffect: include dependencies and introduce additional effect which stops scanner when component unmounts

1 participant