R58 feat(gsx): mount components rendered with @expr
Browse files Landed bygrindlemireas 143d95b9 · with 7 other reviews See in history
You are on patch 3. Patch 4 was pushed 23d ago Go to patch 4
@expr used to call Render on the value, so a component kept in a field
never had its KeyMap, HandleMouse, Init, or watchers wired up. It now
lowers to app.MountInstance, which mounts that exact instance like an
@Component(...) call. Pointer components are keyed by instance, so
reordering a slice of them does not remount, and assigning a new instance
mounts it and sweeps the old one.
Hosts that forwarded a child's KeyMap or Watchers by hand must drop that
forwarding, or the hooks register twice; focus-gated widgets now need
focus. The 15-inline-mode and ai-chat examples are updated accordingly,
and the hover example renders its pages with plain @d.page fields.