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

    enough-petabyte-50314

    02/21/2023, 3:44 PM
    I have no dog in this fight BTW, just adding my perspective. I have not contributed to HTMX nor any extension (yet?)
  • e

    enough-petabyte-50314

    02/21/2023, 3:46 PM
    personally I love vite (not ts a much, I prefer jsdoc comments) and use it on all my personal projects recently, and any new project at work too.
  • e

    enough-petabyte-50314

    02/21/2023, 3:46 PM
    just not sure it would really add anything useful to this project
  • m

    mysterious-car-3675

    02/21/2023, 3:48 PM
    i wanted to make an extension for more flexible delay/throttle, but i try real hard not to touch js without understanding the interface. I think a move to ts+vite, makes having a plugin system with your own build much easier. Like tailwinds, you can get started with a CDN but if you are serious you have your own config and export based on your usage. I'm just advocating for the same in htmx.
  • e

    enough-petabyte-50314

    02/21/2023, 3:55 PM
    on a different note: is this a good room to ask troubleshooting sort of questions? like "why is this not working" or "how would I do ___"
  • a

    adventurous-ocean-93733

    02/21/2023, 4:15 PM
    Yes
  • e

    enough-petabyte-50314

    02/21/2023, 4:17 PM
    Ok.. in that case. Is there a way to have the morph extensions update elements that are in the response but leave other elements alone?
  • m

    mysterious-car-3675

    02/21/2023, 4:23 PM
    are you using id's on your elements?
  • m

    mysterious-toddler-20573

    02/21/2023, 4:35 PM
    this is my kind of build step
  • m

    mysterious-toddler-20573

    02/21/2023, 4:35 PM
    not currently, but this is an interesting idea for an extension to idiomorph!
  • s

    some-airline-73512

    02/21/2023, 4:36 PM
    I agree. Even further - I write my production system in TS and don't use a bundler.
    tsc
    is enough. So even if htmx switches to TS, the case for bundler still has to be made, because compiling TS to JS doesn't require a bundler.
  • m

    mysterious-toddler-20573

    02/21/2023, 4:38 PM
    i really, really like just having a single javascript file that you can load up from source and debug like a normal human being without source maps and transpilers and splitransers and nuxticomitron.js dependencies
  • s

    some-airline-73512

    02/21/2023, 4:40 PM
    @ripe-action-67367 hey, remember this case? So I just stumbled upon inconsistency in htmx. 1.
    hx-swap-oob="beforeend:#.."
    requires to wrap
    <tr>
    in
    <tbody>
    2. but
    hx-swap-oob="outerHTML:#..."
    requires
    <tr>
    NOT to be wrapped in anything to work properly. @mysterious-toddler-20573 how hard would this be to fix?
  • r

    refined-waiter-90422

    02/21/2023, 4:41 PM
    its one of htmx's best features, and what puts it head and shoulders above many other libraries in this space.
  • r

    ripe-action-67367

    02/21/2023, 4:41 PM
    Yeeaa, this is because here is the branching https://github.com/bigskysoftware/htmx/blob/master/src/htmx.js#L727-L729, and outerHTML is inline swap. Fixing this is breaking change tho
  • m

    mysterious-toddler-20573

    02/21/2023, 4:41 PM
    i look at this meme every day, and think about it a lot
  • s

    some-airline-73512

    02/21/2023, 4:42 PM
    I agree 100%. It was so much easier for me to use htmx. Often times I want to understand what is going on. I just open a file and look
  • m

    mysterious-car-3675

    02/21/2023, 4:42 PM
    cool, then i'll drop it
  • m

    mysterious-toddler-20573

    02/21/2023, 4:42 PM
    when I finally get a break from my job shit posting, I plan on fixing OOB swaps by using templates
  • m

    mysterious-toddler-20573

    02/21/2023, 4:43 PM
    I don't want you to drop it, I want to keep having smart people telling me there is a better way to do something because eventually I might be unobstinanty enough to try it
  • m

    mysterious-toddler-20573

    02/21/2023, 4:43 PM
    as w/ typescript for htmx 2.0
  • m

    mysterious-toddler-20573

    02/21/2023, 4:43 PM
    I'm not sure on it, I'm also not sure on build tools
  • m

    mysterious-toddler-20573

    02/21/2023, 4:43 PM
    i do know I like having a single file that you can just drop in
  • m

    mysterious-toddler-20573

    02/21/2023, 4:44 PM
    and no source map/etc. stuff
  • s

    some-airline-73512

    02/21/2023, 4:44 PM
    I love long functions and files . I write in this style myself. I have 2.2k lines files and it's amazing how easy it is to work with it
  • r

    refined-waiter-90422

    02/21/2023, 4:44 PM
    ⏰ Time until next build system / typescript discussion: 29 days
  • m

    mysterious-toddler-20573

    02/21/2023, 4:44 PM
    😑
  • m

    mysterious-car-3675

    02/21/2023, 4:44 PM
    me find steel, steel work better than iron in club, still club 😛 but you like nail, nail not bad
  • m

    mysterious-toddler-20573

    02/21/2023, 4:45 PM
    mmm
  • s

    some-airline-73512

    02/21/2023, 4:45 PM
    What project do you do? Didn't get it
1...102810291030...1146Latest