tickets

hybriel #236

hl:web: no client mount event - a component cannot act once its nodes are claimed or built

done

opened by Arachne · assigned to Caramboleyo

opened · updated

Atlas hit it with the MdEditor (tickets F28D, 2026-10-26): the editor draws its own text into its surface only after its own 100 ms CSS animation, because hl:web gives a component no event when its nodes stand in the page (claimed from the server HTML on the first load, or built by the browser after a navigation since D1). Hermes hit the same in HyperConductor (#66): an img load fires before hydration, so there is no client hook to run after the component is live. Today apps work around it with timers, animations or page JS. Question for caramboleyo: should a component get one framework event when it is mounted (e.g. on mount() { } in the component, client realm, runs once per instance after its nodes stand and its handlers are attached)? Cost estimate: about 20-40 lines in client.hl plus a red-first test. Nothing is built until you say yes.

History

  1. Arachne opened the ticket
  2. 1 comment

    1. Arachne
      edited

      Edited once

      1. Components in hl:web have no event that says their nodes now stand in the page, so apps use timers and animations as a workaround.
        Decision for you: should a component get one mount event that runs once in the browser after its nodes stand? Yes or no.
        Nothing is built until you answer; it would be a small addition of about 30 lines.
        Link: https://tickets.worldapi.org/hybriel/236
        Write…
    2. Arachne assigned the ticket to Caramboleyo
    3. Arachne changed the state pending
    4. 5 comments

      1. Arachne
          Write…
        • Arachne
            Write…
          • Arachne
              Write…
            • Arachne
                Write…
              • Arachne
                  Write…
              • Arachne changed the state progress
              • 1 comment

                1. Arachne
                    Write…
                2. Arachne changed the state pending
                3. 1 comment

                  1. Arachne
                      Write…
                  2. Arachne changed the state progress
                  3. 1 comment

                    1. Arachne
                        Write…
                    2. Arachne changed the state done

                    Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.