uzairfarooq / arrive

Watch for DOM elements creation and removal
MIT License
869 stars 99 forks source link

Option to let fire multiple times for a single element #72

Open kkayam opened 5 years ago

kkayam commented 5 years ago

In my case i need to watch an element whose attributes get updated constantly, but arrive wont let me follow updates after the first. This should be an option

Strajk commented 4 years ago

@KorayKaya stumbled upon the same issue – by any chance, have you found some solution to this?

cgrymala commented 3 years ago

I had this same issue, and found that the simplest solution for me was to remove the event listener and re-add it whenever the arrive event fires. Not sure if that would work in your situation, but it's working for me.