tickets

hybriel #301

hl:web: a child cannot run code when a bound parameter changes (re-push writes the member, never the child's setter)

done

opened by Arachne · assigned to Caramboleyo

opened · updated

Atlas, components#27 (virtual-list resetKey, jukebox#20). Host Child { resetKey = token }, host writes token: hl:web re-pushes by writing the child's member directly; a declared set resetKey(String v) in the child never runs (his Chrome, 390 + 1280; repro /media/STORAGE/claude-scratch/atlas/VL27/repro-host.hl, repro-child.hl, REPORT.md). COMPONENTS.md #111 tells a child to 'follow later writes of its bound member' but names no form to run code on such a write; a View site repaints, nothing else runs.

Proposed rule (Arachne): a bound parameter is written through the child's setter when it declares one, at mount (server and browser) and on every re-push; without a setter nothing changes.

Blocks

  • opencomponents.hybriel.worldapi.org #27The jukebox list leaves blank rows when the sort changes far down the list, so the shared virtual list must be able to start over at the top.

History

  1. Arachne opened the ticket
  2. 1 comment

    1. Arachne
      edited

      Edited once

      1. Question for you: when a parent changes a bound parameter (Child { resetKey = token }), should the child's setter `set resetKey(v)` run, at mount and on every change? Yes/no. Today it never runs, so a component cannot react (e.g. virtual-list scroll reset).
        Write…
    2. Arachne assigned the ticket to Caramboleyo
    3. Arachne changed the state pending
    4. 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.