quick-crayon-19412
02/17/2023, 4:01 PMwhite-rocket-20067
02/17/2023, 4:11 PMlimited-teacher-83117
02/17/2023, 5:31 PMmysterious-toddler-20573
02/17/2023, 5:34 PMmysterious-toddler-20573
02/17/2023, 5:35 PMshow:top
limited-teacher-83117
02/17/2023, 6:25 PMenough-petabyte-50314
02/17/2023, 7:39 PMenough-petabyte-50314
02/17/2023, 7:44 PMhtmx.process
after changing the element's hx-get
attribute? or is there a better way to change what url is got?enough-petabyte-50314
02/17/2023, 7:47 PMelement.setAttribute('hx-get', newPath);
htmx.process(element);
htmx.trigger(element, 'someevent');
enough-petabyte-50314
02/17/2023, 7:51 PMenough-petabyte-50314
02/17/2023, 7:53 PMhtmx.ajax('GET', newPath, {target: '#whatever', swap: 'innerHTML'});
yeah.. this seems rightmysterious-car-3675
02/17/2023, 9:26 PMhappy-knife-63802
02/17/2023, 9:42 PMhappy-knife-63802
02/17/2023, 9:42 PMbrainy-grass-55742
02/17/2023, 10:51 PMable-secretary-52593
02/18/2023, 1:16 PMinclude-vals
extension?ripe-action-67367
02/18/2023, 1:35 PMripe-action-67367
02/18/2023, 1:38 PMrefined-manchester-67193
02/18/2023, 10:27 PMhx-trigger="revealed"
getting missed due to very fast scrolling or a refresh when at the bottom of the page (which would skip the to-be-revealed item).
Context: I'm building an infinite-scroll feed with a catch - I don't want the last item to trigger the next batch, I want it a bit before.mysterious-toddler-20573
02/18/2023, 10:36 PMripe-action-67367
02/18/2023, 10:48 PMrefined-manchester-67193
02/18/2023, 11:28 PMhx-get + hx-trigger=revealed
on the N-X
item which gives a little head start to load the next items. Unfortunately sometimes htmx
is missing that the item has been revealed.ripe-action-67367
02/18/2023, 11:31 PMripe-action-67367
02/18/2023, 11:32 PMripe-action-67367
02/18/2023, 11:49 PMrefined-manchester-67193
02/19/2023, 12:49 AMsome-airline-73512
02/19/2023, 4:16 PMhx-swap-oob=true
in response?ripe-action-67367
02/19/2023, 4:47 PMripe-action-67367
02/19/2023, 4:48 PMsome-airline-73512
02/19/2023, 5:10 PM