Skip to content

effector 20.8.2

Compare
Choose a tag to compare
@zerobias zerobias released this 24 Dec 18:08
· 3928 commits to master since this release
9b70eab
  • Improve combine batching in a few edge cases with nested combine calls
import {createEvent, createStore, combine} from 'effector'

const event = createEvent()
const store = createStore(0).on(event, s => s + 1)

const combined = combine([store, combine([store.map(d => d + 1)])])
combined.watch(e => fn(e))
// => [0, [1]]
event()
// => [1, [2]]

Try it