GraphReFlyTS

API Reference

writableStore()

Creates a writable store.

Import

import { writableStore } from "@graphrefly/ts/adapters";

Signature

function writableStore(
	node: Node<T>,
	opts: WritableStoreOptions<T> = {},
): WritableStore<T>

Parameters

ParameterTypeDescription
nodeNode<T>node value used by the helper.
optsWritableStoreOptions<T>Options that configure the helper.

Returns

The writable store result.

Example

import { writableStore } from "@graphrefly/ts/adapters";

Source

packages/ts/src/adapters/store.ts