Skip to content
PACKAGES

writableStore()

Creates a writable store.

import { writableStore } from "@graphrefly/ts/adapters";
function writableStore(
node: Node<T>,
opts: WritableStoreOptions<T> = {},
): WritableStore<T>
ParameterTypeDescription
nodeNode<T>node value used by the helper.
optsWritableStoreOptions<T>Options that configure the helper.

The writable store result.

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

packages/ts/src/adapters/store.ts