Skip to content

STATE_SLOTS_PER_REACTIVE_ELEMENT

const STATE_SLOTS_PER_REACTIVE_ELEMENT: 2 = 2

Defined in: packages/compiler/src/lower.ts:1558

Slots a reactive element’s companion model needs: the voltage across it and the current through it, which is what a trapezoidal companion carries between samples.

The program declares state in slots and each stamp declares the offset its own state begins at, so both are the same unit and no executor has to know a hidden convention.