Table of Contents

Class MutableRef<T>

Namespace
Velvet
Assembly
Velvet.Docs.dll

Mutable slot holder with no type constraint, for non-element values held across renders.

public sealed class MutableRef<T>

Type Parameters

T

Stored value type. May be a value type or a reference type.

Inheritance
object
MutableRef<T>

Constructors

MutableRef(T)

Creates a new MutableRef<T> seeded with initial.

Properties

Current

Current value. Writes do not trigger a re-render.

See Also

Ref<T>