doxa-maps/plugin-designs/gospel-internet
Doxa Maps 24b32e199f Release the test hooks on unmount, all twelve of them
Twelve globals were set across three plugins and none was ever deleted. Each
pins whatever it closes over — a map instance pins its canvas, its sources and
through them the whole app — so every mount left another copy behind, measured
elsewhere at roughly 10 MB each.

Released as a set rather than one at a time. A block that sets several globals
and clears the obvious one leaks the rest silently, and the obvious one is
whichever the author happened to remember.

Identity-checked, which is why the value is recorded as it is set rather than
cleared by name. Two instances can share a page, and clearing by name alone
would let the second unmount delete the first's live hooks — trading a leak for
a harder bug in which a live map loses its test surface at a distance.

A first attempt compared against a name that did not exist. Inside the try/catch
that guards these, the ReferenceError was swallowed and every delete silently did
nothing — a leak fix that looks exactly like a leak fix and leaks. The guard that
makes the assignment safe is the same guard that hides its failure, which is the
argument for recording what was set rather than inferring it at teardown.
2026-09-28 20:32:59 +00:00
..
scripts Gospel x Internet: an always-on Glottolog credit; old links with map state still open the map 2026-09-28 01:49:44 +00:00
src Release the test hooks on unmount, all twelve of them 2026-09-28 20:32:59 +00:00
board.meta.json Gospel x Internet: the Studio rail names it 'Gospel × Internet' 2026-09-28 04:31:15 +00:00
board.vue Put the collapse guard on the host, where the rest of the fleet keeps it 2026-09-28 14:49:10 +00:00
gospel-internet.instances.json Gospel x Internet: 24 px hit area on the row checkboxes; the presets keep the coach-mark off 2026-09-28 02:03:11 +00:00
index.html Gospel x Internet board: a new plugin on the dashboard kit 2026-09-27 01:29:34 +00:00
index.js Eleven plugin entries import the element helper they call 2026-09-28 17:40:35 +00:00