Skip to content

Conversation

@Mayank-sudo
Copy link

The disconnectedCallback function is a lifecycle hook in Lightning Web Components (LWC) that is called when the component is detached from the DOM. In this context, it's being used to perform the necessary cleanup for the barcode scanner

What does this PR do?

What issues does this PR fix or reference?

#

The PR fulfills these requirements:

[ ] Tests for the proposed changes have been added/updated.
[ ] Code linting and formatting was performed.

Functionality Before

<insert gif and/or summary>

Functionality After

<insert gif and/or summary>

The disconnectedCallback function is a lifecycle hook in Lightning Web Components (LWC) that is called when the component is detached from the DOM. In this context, it's being used to perform the necessary cleanup for the barcode scanner
@Mayank-sudo Mayank-sudo requested a review from a team as a code owner January 28, 2025 12:06
@pozil
Copy link
Contributor

pozil commented Jan 28, 2025

Hi @Mayank-sudo, thanks for contributing. I'm happy to take your changes related to the disconnectedCallback but please restore the rest of the code and the comments first.

@pozil pozil closed this Jan 28, 2025
@pozil pozil reopened this Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants