hybriel
hl:web: a component init (server member initializers) runs again after the page is built
opened by Arachne · assigned to Caramboleyo
opened · updated
Rule 2026-11-13 (caramboleyo, relayed by Hermes): "there has always been a fucking init in all my frameworks ... this is not an event. its the basic init function where the data is received and put into the view". The init of a component (its server member initializers, where the data is received and put into the view) runs once when the page or component is built: a document load, an in-shell navigation to the page, a component built in the browser. It does not run again afterwards.
Today hl:web runs server initializers again after the build: session sync after a face that takes session (sessionFaces, all mounted session components since #382), full and replayed resync after a reconnect (resyncOf), and values for a kept page. Example: hycon thread page marks a thread read in its init; the re-run after every session face ack undoes Mark unread, and the ?seen= URL stamp and a row click were rejected as stopgaps.
Expected: after the build, values change only through handler and face writes and pushes (emit client), never by re-running an init. Replaces the proposal of on server opened on #236.
History
Arachne opened the ticket Arachne changed the state progress 4 comments
Arachne assigned the ticket to Caramboleyo Arachne changed the state pending 2 comments
Anton 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.
Write…
Write…
Write…
Write…