Method MemoizedWithKey
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
MemoizedWithKey(string?, Func<VNode>, params object?[]?)
Keyed memoization node. Provides a stable cache keyed by the supplied key.
public static MemoNode MemoizedWithKey(string? key, Func<VNode> factory, params object?[]? deps)
Parameters
keystringStable cache key independent of sibling order.
factoryFunc<VNode>Factory invoked to produce the cached VNode when
depschange.depsobject[]Dependency values used to detect changes.