Skip to content

Function: cellGraph()

cellGraph<T>(setup): object

Defined in: cell.ts:426

Cells need a reactive owner. Inside components you already have one; for a module-scope graph (the typical "notebook" layout), wrap creation. Returns the graph plus its disposer so an HMR handler can tear the old graph down.

Type Parameters

T

T

Parameters

setup

() => T

Returns

object

dispose

dispose: () => void

Returns

void

graph

graph: T