Class Deferred<T>
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
A value a loader hands back before it has it: React Router's unawaited promise in loader data. A loader
returns it inside its data so the navigation commits without waiting for it, and the route reads it
through V.Await beneath a V.Suspense, which shows its fallback until the value arrives.
Any number of V.Await may read one.
public sealed class Deferred<T>
Type Parameters
TThe value's type.
- Inheritance
-
objectDeferred<T>
Constructors
- Deferred(VelvetTask<T>)
Starts observing
task, which it consumes.