You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm implementing a chrome extension and wonder what the recommended best way of handling node removal/cleanup is in the case that another 3rd party script removes a dom node that was mounted with solid.
Unmounting etc. can be tricky to handle as the dom element is already removed. It's possible that I can watch for nodesRemoved using a mutation observer and then take action.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Team,
I'm implementing a chrome extension and wonder what the recommended best way of handling node removal/cleanup is in the case that another 3rd party script removes a dom node that was mounted with solid.
Unmounting etc. can be tricky to handle as the dom element is already removed. It's possible that I can watch for nodesRemoved using a mutation observer and then take action.
Thoughts/suggestions/recommendations welcome :-) Thankyou!
Beta Was this translation helpful? Give feedback.
All reactions