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
TStored value type. May be a value type or a reference type.
- Inheritance
-
objectMutableRef<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>