Skip to content

Issues with add then remove - #559

Closed
lemonmade wants to merge 2 commits into
mainfrom
issues-with-add-then-remove
Closed

Issues with add then remove#559
lemonmade wants to merge 2 commits into
mainfrom
issues-with-add-then-remove

Conversation

@lemonmade

Copy link
Copy Markdown
Contributor

No description provided.

@lemonmade

lemonmade commented Apr 1, 2025

Copy link
Copy Markdown
Contributor Author

Here was my original investigation of why this only affected the remote-ui adaptor. Both of them show some manual instrumentation from me loading the page on that example, pressing button 1, reversing the buttons, then pressing button 1 again:

Messages for Remote DOM

Screenshot 2025-03-31 at 3 46 30 PM

Messages from Remote UI adaptor

Screenshot 2025-03-31 at 3 42 57 PM

release(child.properties.peek());
if (release) {
if ('properties' in child) release(child.properties.peek());
if ('eventListeners' in child) release(child.eventListeners.peek());

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The absence of this line is why this whole thing worked before — we were not releasing the function references attached as event listeners.

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