Module: Phlex::Reactive::Component::Identity
- Extended by:
- ActiveSupport::Concern
- Included in:
- Phlex::Reactive::Component
- Defined in:
- lib/phlex/reactive/component/identity.rb
Overview
The signed-identity half of Component (issue #115): reactive_token — the payload signed into the DOM root on EVERY render — plus the class-level ivar precomputation that keeps that render path allocation-free.
THE token hot path. Both memos below are bare defined?/||= fast paths ON PURPOSE: a render must never pay a per-read generation compare (issue #115 invariant, .claude/rules/performance.md). Coherence comes from the WRITE side instead — Component::Registry.bump! sweeps these memos off the declaring class and all its descendants whenever any registry declaration lands (class-load-shaped, rare), so they can't go stale even when an ancestor re-declares after a subclass memoized.