https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • m

    mysterious-toddler-20573

    11/10/2022, 2:05 PM
    https://htmx.org/examples/lazy-load
  • m

    mysterious-toddler-20573

    11/10/2022, 2:06 PM
    what version of htmx are you using? I believe a bug around disinheriting
    hx-vals
    was fixed recencly
  • m

    mysterious-toddler-20573

    11/10/2022, 2:06 PM
    @gorgeous-ghost-95789 is your component library ready for use?
  • f

    fresh-van-39038

    11/10/2022, 2:09 PM
    I am using 1.8.4
  • f

    fresh-van-39038

    11/10/2022, 2:10 PM
    I'll try to debug it
  • m

    mysterious-toddler-20573

    11/10/2022, 2:11 PM
    ah, use hx-vals="unset"
  • m

    mysterious-toddler-20573

    11/10/2022, 2:11 PM
    that should work
  • m

    mysterious-toddler-20573

    11/10/2022, 2:11 PM
    although disinherit should work too
  • f

    fresh-van-39038

    11/10/2022, 2:13 PM
    it works
  • f

    fresh-van-39038

    11/10/2022, 2:14 PM
    but I am not sure I am happy with it though 😅
  • f

    fresh-van-39038

    11/10/2022, 2:14 PM
    any idea why the inheritance is not reverted ?
  • f

    fresh-van-39038

    11/10/2022, 2:14 PM
    inherit="*"
  • f

    fresh-van-39038

    11/10/2022, 2:15 PM
    then you control exactly what happens and you don't end up with workaround or hard to predict side effects
  • r

    ripe-action-67367

    11/10/2022, 2:16 PM
    switch to explicit inheritance is considered for 2.0
  • f

    fresh-van-39038

    11/10/2022, 2:16 PM
    any way to upvote it?
  • f

    fresh-van-39038

    11/10/2022, 2:16 PM
    thanks @ripe-action-67367 @mysterious-toddler-20573
  • r

    ripe-action-67367

    11/10/2022, 2:17 PM
    https://gist.github.com/1cg/f1a6d44c34195c4b6b30df864cf3dcef initial ideas for 2.0 has been discussed here
  • r

    ripe-action-67367

    11/10/2022, 2:17 PM
    including explicit inhertinace
  • f

    fresh-van-39038

    11/10/2022, 2:20 PM
    https://gist.github.com/1cg/f1a6d44c34195c4b6b30df864cf3dcef?permalink_comment_id=4364994#gistcomment-4364994
  • f

    fresh-van-39038

    11/10/2022, 2:20 PM
    thanks
  • f

    fresh-van-39038

    11/10/2022, 2:22 PM
    FYI, I am leading a team from the Quarkus community to bring a seamless integration of Hx in Quarkus (Java)
  • f

    fresh-van-39038

    11/10/2022, 2:22 PM
    This is amazing work! Thanks guys
  • g

    gorgeous-ghost-95789

    11/10/2022, 2:29 PM
    I’d say “yes, with caution.” I’m using it now without needing any tuning. However, I don’t have it “in production” yet, so it hasn’t been battle tested.
  • m

    mysterious-toddler-20573

    11/10/2022, 2:35 PM
    ah, fantastic to hear, super happy to help get htmx more widely known in the Java world. Java was my first professional programming language, and I have a soft spot for it.
  • m

    mysterious-toddler-20573

    11/10/2022, 2:36 PM
    Courtesy of @refined-waiter-90422, it appears that mozilla is starting to use htmx: https://twitter.com/htmx_org/status/1590714360342925317
  • g

    green-army-74971

    11/10/2022, 4:36 PM
    oh, beautiful, thanks. yeah, i figured something like it would be in htmx somewhere, but then i didn't see it anywhere obvious and gave up looking pretty quick. thx!
  • m

    most-activity-91725

    11/10/2022, 4:41 PM
    I don't know if it covers 100% of your UX concern, but combined with
    hx-indicator
    (or maybe even the automatically-applied classnames) I bet you can get the rest of the way there 😎 https://htmx.org/reference/#classes
  • a

    astonishing-barista-36240

    11/10/2022, 5:19 PM
    Is it possible to override the hx-target with a server response? My use case is that if an error happens during a hx-post, I'd like to return a custom error page and swap it into ... not whatever the original hx-target was.
  • a

    astonishing-barista-36240

    11/10/2022, 5:21 PM
    Aha! https://htmx.org/reference/#response_headers
  • a

    astonishing-barista-36240

    11/10/2022, 5:21 PM
    HX-Retarget
1...899900901...1146Latest