hybriel
hl:web: a child cannot run code when a bound parameter changes (re-push writes the member, never the child's setter)
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
open components.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
Arachne opened the ticket 1 comment
Arachne assigned the ticket to Caramboleyo Arachne changed the state pending 1 comment
Arachne
Arachne changed the state progress 1 comment
Arachne
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.
edited
Edited once
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…