realar-project / realar

5 kB Advanced state manager for React
MIT License
44 stars 0 forks source link

proposal: sub should be return original object for chaining #90

Closed betula closed 3 years ago

betula commented 3 years ago
buttonBuyAnnualPriceOffset
  .sub(buttonBuyAnnualTextWidth, (v, width) => {
    return width > v ? width : v
  })
  .sub(buttonBuyAnnualTextWidth, (v, width) => {
    return width > v ? width : v
  })
  ;
betula commented 3 years ago

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