Help and docs
Sign in

R59 fix: start and stop watchers with mounted components

Browse files
grindlemire 24d 12 files +141 ~51 -98
Landed bygrindlemireas 88a50534 · with 7 other reviews See in history
You are on patch 1. Patch 5 was pushed 23d ago Go to patch 5

Component watchers were collected once after the first render, so a
component mounted later never started its watchers, and an unmounted one
kept them running. The mount system now starts an instance's watchers
when it mounts and stops them through a per-instance stop channel when it
is swept, matching the documented lifecycle.

SetRootComponent now resets the root session before its initial render,
so components mounted there are not discarded and mounted again (which
ran Init twice), and replacing a root fully unmounts its components.

Latest