effector-react v0.10.0 Release Notes

    • ๐Ÿ’ฅ breaking Removed rootDomain alias for createRootDomain
    • ๐Ÿ›  Fixed duplication of typeConstant events
    • โž• Added sync event propagation
    • Catching of watch function errors
    • โž• Added warning to port errors
    • โž• Added type aliases DomainAuto, EventAuto and EffectAuto
    • โž• 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',
    }))