@kayelaa/canvas API - v0.2.15
    Preparing search index...

    Class KaylaInternalRef<T>

    Mutable reference object whose .current property persists across component refreshes.

    Returned by useRef and useSelf. Changes to .current never trigger refresh, making it safe for hot mutable data (position, velocity, timers, DOM nodes, etc.).

    Type Parameters

    • T

      Type of the referenced value

    Implements

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get current(): T

      The mutable value held by the ref.

      Reading or writing this property has no side effects — it does not trigger component refresh, re-render, or hook re-registration.

      When initialized with the self symbol via useRef(self), this becomes a reference to the underlying KaylaRectEntity.

      Returns T

    • set current(s: T): void

      The mutable value held by the ref.

      Reading or writing this property has no side effects — it does not trigger component refresh, re-render, or hook re-registration.

      When initialized with the self symbol via useRef(self), this becomes a reference to the underlying KaylaRectEntity.

      Parameters

      Returns void

    Methods