API Reference
depLatest()
Latest cached DATA for a dep, derived from implementation-owned dep cache.
Import
import { depLatest } from "@graphrefly/ts/core";
Signature
function depLatest(
ctx: Ctx,
depIndex: number,
): unknown
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | Ctx | Node execution context supplied by the dispatcher. |
depIndex | number | dep index value used by the helper. |
Returns
The dep latest result.
Example
import { depLatest } from "@graphrefly/ts/core";
Source
packages/ts/src/ctx/types.ts