astonishing-barista-36240
02/16/2023, 1:04 PMrefined-waiter-90422
02/16/2023, 2:06 PMrefined-manchester-67193
02/16/2023, 9:40 PMhx-get
? I have somewhat of a convoluted use-case :/gorgeous-ghost-95789
02/16/2023, 9:41 PMgorgeous-ghost-95789
02/16/2023, 9:42 PMrefined-manchester-67193
02/16/2023, 9:49 PMhx-get
that looks something like: items?type=Remix&type=Album&period=future
.
So here's one issue with HTMX that I still haven't found an elegant issue to solve: how do I "unpack" a dictionary or list into query params. Say the user selected two buttons (toggles) with Album
and Remix
, I want to translate that to query params such as the hx-get
URL is now type=Remix&type=Album
.gorgeous-ghost-95789
02/16/2023, 9:59 PMripe-action-67367
02/16/2023, 10:00 PMripe-action-67367
02/16/2023, 10:02 PMripe-action-67367
02/16/2023, 10:06 PMjs:{}
syntax to dynamically load values (I used constant array, but you can use any JS expression, including function calls). This is useful, if your filters are not accessible by hx-include and you are forced to get the values via JS from some storage.ripe-action-67367
02/16/2023, 10:06 PMrefined-manchester-67193
02/16/2023, 10:08 PMrefined-manchester-67193
02/16/2023, 11:20 PMhx-get
attr of an HTML element, and let htmx
know about the change, before htmx
gets to make the request? (the hyperscript
trigger and the htmx
are on the same element, and they it's the same triggger)refined-manchester-67193
02/16/2023, 11:44 PMhtmx:historyCacheError
almost on every push-url
, but it seems like history is working fine..?gorgeous-ghost-95789
02/16/2023, 11:53 PMrefined-manchester-67193
02/16/2023, 11:57 PMhyperscript
hackery. Now having htmx:historyCacheError which seem hard to debug..gorgeous-ghost-95789
02/16/2023, 11:57 PMrefined-manchester-67193
02/17/2023, 12:02 AMrefined-manchester-67193
02/17/2023, 12:04 AMmysterious-toddler-20573
02/17/2023, 12:23 AMhtmx.config.historyCacheSize
to 0, which will disable it and then htmx will issue a full page refresh on back button navigationrefined-manchester-67193
02/17/2023, 12:39 AMrefined-manchester-67193
02/17/2023, 12:43 AMrefined-manchester-67193
02/17/2023, 12:47 AMmysterious-toddler-20573
02/17/2023, 3:40 AMmysterious-toddler-20573
02/17/2023, 3:40 AMmysterious-toddler-20573
02/17/2023, 3:41 AMripe-piano-71543
02/17/2023, 8:37 AMbrash-microphone-56568
02/17/2023, 9:19 AMbrash-microphone-56568
02/17/2023, 9:28 AMadventurous-ocean-93733
02/17/2023, 10:00 AM