@tempots/dom
ProvideProbe() function
Provides a child component with a probe, which can be used to trigger a callback when all probes with the same identifier are resolved. To resolve a probe, call the done
function passed using the UseProbe
renderable.
Signature:
ProvideProbe: ({ identifier, callback, child, timeout, }: {
identifier: symbol;
callback?: (resolution: ProbeResolution) => void;
child: TNode;
timeout?: number;
}) => Renderable
Parameters
Parameter |
Type |
Description |
---|---|---|
{ identifier, callback, child, timeout, } |
{ identifier: symbol; callback?: (resolution: ProbeResolution) => void; child: TNode; timeout?: number; } |
Returns: Renderable
The child component with the probe.