realar-project / realar

5 kB Advanced state manager for React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

proposal: sub should be return original object for chaining

betula opened this issue · comments

buttonBuyAnnualPriceOffset
  .sub(buttonBuyAnnualTextWidth, (v, width) => {
    return width > v ? width : v
  })
  .sub(buttonBuyAnnualTextWidth, (v, width) => {
    return width > v ? width : v
  })
  ;

The "sub" renamed to "update.by" and returns the chaining self context
0.6.0