Fork me on GitHub
#hoplon
<
2018-03-04
>
flyboarder03:03:58

@candera there is a mutation observer thing in hoplon/brew now, it’s wip and requires latest hoplon, but should make things easy enough

leobm10:03:12

is there any example how to use the mutation! method?

flyboarder03:03:16

basically makes it so you can implement mutation observers via attributes

candera11:03:58

Did you find a way to actually observe a particular element being added, though? I didn’t see a good way to do that when I was looking at them.

thedavidmeister13:03:29

what do you guys think of the tpl or merge-kids triggering events on the DOM elements it adds/removes?

thedavidmeister13:03:34

no idea what perf of that is

candera13:03:56

I don’t think that’s the same thing as the element entering the DOM, though, right?

candera13:03:30

Like (div (span "whatever")) when the span gets added to the div is not particularly interesting if the div gets added to the DOM a lot later.