effector-react v0.10.0 Release Notes
-
- ๐ฅ breaking Removed
rootDomain
alias forcreateRootDomain
- ๐ Fixed duplication of
typeConstant
events - โ Added sync event propagation
- Catching of watch function errors
- โ Added warning to port errors
- โ Added type aliases
DomainAuto
,EventAuto
andEffectAuto
- โ Added
mill
fluent "AND" reducer combinator
import {mill, type MillType, type Reducer} from 'effector' type A = 'foo' type B = 'bar' declare var reducerA: Reducer<A> declare var reducerB: Reducer<B> const tuple: MillType<A, B> = mill() .and(reducerA) .and(reducerB) const union: Reducer<{ a: A, b: B, staticField: string, }> = tuple.joint((a: A, b: B) => ({ a, b, staticField: 'its ok', }))
- ๐ฅ breaking Removed