GraphReFlyTS

API Reference

restoreReactiveLog()

D161 synchronous collection-owned restore. This helper never reads storage.

Import

import { restoreReactiveLog } from "@graphrefly/ts/data-structures";

Signature

function restoreReactiveLog(
	state: ReactiveLogRestoreState<T> | readonly T[],
	options: ReactiveLogOptions = {},
): ReactiveLog<T>

Parameters

ParameterTypeDescription
stateReactiveLogRestoreState<T> | readonly T[]state value used by the helper.
optionsReactiveLogOptionsOptions that configure the helper.

Returns

A ReactiveLog<T> value.

Example

import { restoreReactiveLog } from "@graphrefly/ts/data-structures";

Source

packages/ts/src/data-structures/persistence.ts