Function pub

  • Runs the subscrptions of this node.

    Type Parameters

    • T

    Parameters

    Returns void

    const foo$ = Action((r) => {
    r.sub(foo$, console.log)
    })

    const r = new Realm()
    r.pub(foo$
  • Publishes the specified value into a node.

    Type Parameters

    • T

    Parameters

    Returns void

    const foo$ = Cell('foo')
    const r = new Realm()
    r.pub(foo$, 'bar'