Skip to content

Conversation

@abeidahmed
Copy link
Collaborator

Description

In this PR, we decided to invoke the disconnected function before invoking the [target]Disconnected function. Our apps tend to clean up and refer targets within the disconnected function. If we disconnect targets before the element itself, we get a null/undefined exception error and have to do safety checks manually.

In this PR, we made the decision to invoke the `disconnected` function
before invoking the `[target]Disconnected` function. This is because,
our apps have a tendency to clean up and refer targets within the
`disconnected` function, and if we disconnect targets before the element
itself, we get a null/undefined exception error and have to do safety
checks manually.
@abeidahmed abeidahmed merged commit 79c8b27 into main May 2, 2024
@abeidahmed abeidahmed deleted the reorder-disconnected-callbacks branch May 2, 2024 08:25
@abeidahmed abeidahmed mentioned this pull request May 17, 2024
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.

2 participants