{"version":"2.1.223","anchor":"session-scoped-globals-refactored-into-a-resettable-cell-reg","canonical_anchor":"session-scoped-globals-refactored-into-a-resettable-cell-reg","heading":"Session-scoped globals refactored into a resettable cell registry","tier":"internal","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.223\/e\/session-scoped-globals-refactored-into-a-resettable-cell-reg","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.223","markdown":"### Session-scoped globals refactored into a resettable cell registry\n\nSession state is now reset through a central registry, so switching sessions clears things more reliably.\n\n**What**\n\nModule-level mutable globals with hand-written getter and setter pairs were replaced by cells produced by a factory and tracked in a registry.\n\n**Details**\n\n- the factory returns a `{get, set, reset}` cell and pushes it onto the registry\n- session reset now clears the maps and loops the registry calling `reset()` instead of nulling each variable by name\n- a number of one-line getters and setters were removed as a result\n\n**Evidence**\n\n`reset: () => {`\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 0\/5"}