Function pubIn

  • Publishes into multiple nodes simultaneously, triggering a single re-computation cycle.

    Parameters

    • values: Record<symbol, unknown>

      a record of node references and their values.

    Returns void

    const foo$ = Cell('foo')
    const bar$ = Cell('bar')

    const r = new Realm()
    r.pubIn({[foo$]: 'foo1', [bar$]: 'bar1'})