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

    mysterious-toddler-20573

    09/18/2020, 2:43 PM
    can I see the code?
  • b

    big-airline-13935

    09/18/2020, 2:43 PM
    Perhaps because of the kebab-case event names?
  • m

    mysterious-toddler-20573

    09/18/2020, 2:44 PM
    Oh, one thing we are doing now: if an event comes in while a request is in flight, we queue that event
  • m

    mysterious-toddler-20573

    09/18/2020, 2:44 PM
    the kebab case shouldn't trigger the same event
  • m

    mysterious-toddler-20573

    09/18/2020, 2:44 PM
    So if you have a key up event and another key up happens while the request from the first one is in flight, we will fire another request when it completes
  • m

    most-jelly-15242

    09/18/2020, 2:46 PM
    I just noticed it, so i may need to work on preparing an example. This is the scenario. I click a link, that triggers a server request which responds with HX-Trigger
    custom-namespace:refresh
    .and some data. I have an extension that listens for this event, strips the namespace, and then uses htmx.trigger using the
    refresh
    event name.
  • m

    mysterious-toddler-20573

    09/18/2020, 2:46 PM
    @User bumped hyperscript to a 0.0.2. That change that you made broke eval in some extremely strange way. I'll look at it again later.
  • m

    mysterious-toddler-20573

    09/18/2020, 2:47 PM
    WAIT
  • m

    mysterious-toddler-20573

    09/18/2020, 2:47 PM
    I know the bug, and it is kebab naming
  • m

    mysterious-toddler-20573

    09/18/2020, 2:47 PM
    dammit
  • m

    mysterious-toddler-20573

    09/18/2020, 2:47 PM
    OK, 0.1.1 coming soon :/
  • m

    most-jelly-15242

    09/18/2020, 2:48 PM
    do you want me to test first?
  • b

    big-airline-13935

    09/18/2020, 2:49 PM
    > @User bumped hyperscript to a 0.0.2. That change that you made broke eval in some extremely strange way. I'll look at it again later. @User Ah, well at least he who broke it reported it 😉
  • m

    most-jelly-15242

    09/18/2020, 2:49 PM
    ah, not a fix for htmx, got it 🙄
  • b

    big-airline-13935

    09/18/2020, 2:54 PM
    I think Carson did mean htmx 0.1.1...
  • m

    mysterious-toddler-20573

    09/18/2020, 2:55 PM
    yeah, I see the problem
  • m

    mysterious-toddler-20573

    09/18/2020, 2:55 PM
    if you have an event whose name is the same in camel case and kebab case, we dispatch it twice
  • m

    mysterious-toddler-20573

    09/18/2020, 2:55 PM
    dumb
  • m

    mysterious-toddler-20573

    09/18/2020, 2:55 PM
    writing a test now, fix is easy
  • m

    mysterious-toddler-20573

    09/18/2020, 2:55 PM
    sorry about that
  • m

    most-jelly-15242

    09/18/2020, 3:00 PM
    Great, thanks
  • m

    most-jelly-15242

    09/18/2020, 3:02 PM
    Btw, not sure if someone's interested. I am working on a Livewire-ish, Sprig-alternative that's standalone. No CMS required. I have all the sprig examples working, but now I also want to make it work with other template systems, Laravel Blade in particular. Never wrote anything like this before, so it's a struggle, but I am getting there.
  • m

    mysterious-toddler-20573

    09/18/2020, 3:03 PM
    hey everybody! I'm glad to announce htmx 0.1.1 and hyperscript 0.0.2
  • m

    mysterious-toddler-20573

    09/18/2020, 3:04 PM
    https://github.com/bigskysoftware/htmx/commit/4e15653adba76fb297da0a021a80ee8187904e5b
  • m

    mysterious-toddler-20573

    09/18/2020, 3:04 PM
    @User the problem was if you had an event where the kebab name and the camel case name was the same, you got two events
  • m

    mysterious-toddler-20573

    09/18/2020, 3:05 PM
    test added, and fixed in 0.1.1
  • m

    mysterious-toddler-20573

    09/18/2020, 3:05 PM
    :/
  • m

    mysterious-toddler-20573

    09/18/2020, 3:05 PM
    I need coffee
  • m

    most-jelly-15242

    09/18/2020, 3:08 PM
    @mysterious-toddler-20573 now the event is not seen by htmx within my extension
  • m

    mysterious-toddler-20573

    09/18/2020, 3:08 PM
    stop
1...323334...1146Latest