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

    mysterious-toddler-20573

    01/06/2023, 9:23 PM
    (I believe this was a feature you wanted/implemented?)
  • m

    mysterious-toddler-20573

    01/06/2023, 10:00 PM
    good ol
    204 No Content
    https://github.com/bigskysoftware/htmx/issues/1130
  • h

    hundreds-camera-24900

    01/06/2023, 10:08 PM
    yeah - I was planning on spending some time tmr reading through the notes
  • h

    hundreds-camera-24900

    01/06/2023, 10:10 PM
    from talking about it last night it certainly seems it's firing more events than it needs to
  • h

    hundreds-camera-24900

    01/06/2023, 10:11 PM
    I don't think the redirect should alter the history at all - it should be transparent like with a 3xx redirect
  • l

    late-king-98305

    01/06/2023, 10:19 PM
    Sorry - day job has been time consuming today. I'll take a look this weekend and let you know if I think of anything. I'm fluent in Java - I just don't use it for my side work where I also use htmx. πŸ™‚
  • a

    abundant-coat-35982

    01/06/2023, 11:52 PM
    Big improvement on this idea I had earlier: Why make a single server host the entire virtual dom? What if instead, there were front end microservices, each responsible for only a piece of the page? If a dynamic web app can have a modular interface, the generation of the modules can be distributed, right?
  • a

    abundant-coat-35982

    01/06/2023, 11:55 PM
    Instead of a server maintaining the state if a big virtual dom, stateless micro-services could generate their piece based on given parameters on the fly
  • g

    gorgeous-airport-54386

    01/06/2023, 11:57 PM
    ... this message goes so starkly against the culture of this server i can't express it
  • a

    abundant-coat-35982

    01/06/2023, 11:58 PM
    Oop πŸ’€ πŸ˜…
  • g

    gorgeous-airport-54386

    01/06/2023, 11:59 PM
    "microservice", "virtual dom", all the dirty words :]
  • g

    gorgeous-airport-54386

    01/06/2023, 11:59 PM
    i think this can be made to fit in with htmx in some way though
  • g

    gorgeous-airport-54386

    01/07/2023, 12:00 AM
    if CORS wasn't an issue you could have different servers generating html fragments that all get swapped into one page
  • a

    abundant-coat-35982

    01/07/2023, 12:01 AM
    Another acronym I’m not familiar with lol https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
  • a

    abundant-coat-35982

    01/07/2023, 12:03 AM
    To be fair, I thought a big server side stateful virtual dom was an ugly idea, which is what spurred this lol
  • a

    abundant-coat-35982

    01/07/2023, 12:03 AM
    I think it’s a good ideal that servers are stateless with regards to the client
  • g

    gorgeous-airport-54386

    01/07/2023, 12:03 AM
    shared state between server and client is something we're trying to eliminate
  • a

    abundant-coat-35982

    01/07/2023, 12:04 AM
    Yeah
  • g

    gorgeous-airport-54386

    01/07/2023, 12:05 AM
    i think the hitch with the server virtual dom idea, microservices or not, is that the server needs a continuous session per user instead of self-contained request/response cycles
  • a

    abundant-coat-35982

    01/07/2023, 12:05 AM
    Exactly
  • g

    gorgeous-airport-54386

    01/07/2023, 12:05 AM
    but!
  • g

    gorgeous-airport-54386

    01/07/2023, 12:06 AM
    the erlang runtime was designed for phone carriers, which means it can hold on to lots of ongoing processes
  • g

    gorgeous-airport-54386

    01/07/2023, 12:06 AM
    thus the Phoenix web framework can do the thing i sent you earlier
  • g

    gorgeous-airport-54386

    01/07/2023, 12:07 AM
    the way that works is it has a separate greenthread for each user
  • g

    gorgeous-airport-54386

    01/07/2023, 12:08 AM
    the server holds the canonical dom state. the client sends events, and receives dom patches
  • a

    abundant-coat-35982

    01/07/2023, 12:08 AM
    It’s always interesting when an idea I have already exists lol
  • g

    gorgeous-airport-54386

    01/07/2023, 12:09 AM
    the phoenix/elixir/erlang/BEAM cinematic universe is pretty cool
  • j

    jolly-waitress-42858

    01/07/2023, 1:09 AM
    Fun fact: Java had support for green threads, but was removed in JDK 1.1. And now the biggest awaited feature in Java for March 2023 - Project Loom is Erlang style green threads.
  • g

    gray-morning-3453

    01/07/2023, 7:03 AM
    I have forms which send POST requests to Django views, which in return send back HX-Trigger headers and the frontend responds as expected. The event controller is tied to body element. But when a button sends a delete request, the frontend recieves the same HX-Trigger headers but the frontend does not react as expected. I believe that the button itself is consuming the event and is not letting the event bubble up to the body. How can I fix this?
  • g

    gray-morning-3453

    01/07/2023, 7:11 AM
    I have checked the network response and the headers are coming back from the backend just as they should, its only that the frontend eventhandlers are not reacting to the event, even though they are reacting to the same events when the events come after a form POST.
1...973974975...1146Latest