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

Add more tests for dynamic modifier invocation #1411

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

NullVoxPopuli
Copy link
Contributor

@NullVoxPopuli NullVoxPopuli commented Mar 21, 2023

While investigating #1410
Which is ember-modifier/ember-modifier#613
I found that glimmer-vm, at least, seems to be handling this scenario correctly.
So while I debug elsewhere, I figured it may be good to have the extra tests, since I didn't see anything covering the this use case.


UPDATE!

So, it appears this is specific to when the element is removed.
And I'm less certain this is actually an issue.

If an element is removed from the dom, is there anything to cleanup?
Any event listeners attached to the element would be cleaned up by the browser.
Animations running on the element would stop via the browser.
etc.

@wycats
Copy link
Contributor

wycats commented May 4, 2023

Modifier cleanup should definitely run reliably whenever their associated element is removed from the DOM.

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.

None yet

2 participants