GraphReFlyTS

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

ParameterTypeDescription
ctxCtxNode execution context supplied by the dispatcher.
depIndexnumberdep 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