effector 20.8.2
zerobias
released this
24 Dec 18:08
·
3928 commits
to master
since this release
- Improve
combine
batching in a few edge cases with nestedcombine
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]]