Seitu
Core

Computed

Derives a subscription from one source or many.

createComputed()

transform is memoized on source references, so get() is stable until a source changes. Subscribers are notified only when the derived value changes (Object.is).

import { ,  } from 'seitu'

const  = ({ : 1, : 2 })
const  = (,  => . + .)
.() // 3
import { ,  } from 'seitu'

const  = (1)
const  = (2)
const  = ([, ], ([, ]) =>  + )
.()
Edit on GitHub

Last updated on

On this page