Closed Wildhoney closed 3 years ago
I think we added this at some point, but then I felt it was too distracting to have in the README. This would be great material for a wiki, but I don't have much bandwidth to take care of one in addition to the repository.
I know #167 was closed because it become too heated, and I don't wish to reignite that discussion.
However I was reaching out to see if you'd be open to adding an example in the README of using
MutationObserver
to implement theoncreate
/ondestroy
approach we had with previous versions? As far as I see, theMutationObserver
approach is better overall as it's a concern of the DOM rather thansuperfine
.Essentially: