Fork me on GitHub
#hoplon
<
2018-03-02
>
thedavidmeister13:03:36

@candera can you do a minimal repro with the latest hoplon?

candera13:03:03

I will try to get to that. No promises. But, by the same token, no expectations that anyone spend any time fixing this.

thedavidmeister14:03:14

i just wonder whether this is an issue in master

thedavidmeister14:03:32

i was getting some weird edge cases when i actually wrote tests for merge-kids

thedavidmeister14:03:39

(that are fixed now)

candera14:03:26

If you get really curious, I would imagine the repro isn’t too bad. You just need to have an element that has an attribute like :click and that doesn’t get added to the DOM immediately, or gets added and removed right away (not sure). You might not get 100% CPU like I am with just one element, but a profile should show you spending an awful lot of time in when-dom’s doit.

thedavidmeister15:03:08

@candera i agree that ideally when-dom is not time based

thedavidmeister15:03:28

actually i'd like something that triggers on add and remove indefinitely

thedavidmeister15:03:37

if you have a good idea i'm interested 🙂

candera15:03:27

Check out that CSS hack above.

candera15:03:56

Because I tried the mutation observer thing and found it unimpressive.

thedavidmeister15:03:51

you know i linked to the exact same article right? 😛

candera15:03:17

Now that you mention it, that does sound familiar. 🙂

candera15:03:26

Sorry - as usual doing several things at the same time.

candera15:03:52

When in actuality I’m lucky if I can do one halfway competently.

thedavidmeister15:03:05

well i didn't try it

thedavidmeister15:03:31

i'd love to hear if it works