Trying to understand how phx-update="stream" works along with hooks

I can’t think of a good answer for this off the top of my head (maybe someone else will chime in), but in the case of the hook you provided everything should be fine because the behavior is idempotent. Right?

If you’re concerned about performance I don’t see it being noticeable unless you have an enormous number of rows there.

BTW, you could just use one selector here:

rows = document.querySelectorAll("#filterable_data tr");
1 Like