github react-hookz/web v11.0.0

latest releases: v14.3.0, v14.2.3, v14.2.2...
3 years ago

11.0.0 (2021-09-28)

Bug Fixes

  • proper links in readme that don't break in firefox (b406dc6)

Features

  • improve useConditionalEffect and remove useConditionalUpdateEffect (#345) (4474cf7)

BREAKING CHANGES

  • useConditionalEffect conditions and deps arguments now switched places.

  • feat(useConditionalEffect): added ability to wrap other effect hooks

  • feat: remove useConditionalUpdateEffect

  • useConditionalUpdateEffect removed in favor of
    composition with useConditionalEffect.

Now you should simpy pass extra argument to achieve same functionality:
useConditionalEffect(()=>{}, undefined, [], truthyAndArrayPredicate, useUpdateEffect)

  • Interface IUseConditionalEffectPredicate renamed to
    IConditionsPredicate

  • docs: cleanup, remove useConditionalUpdateEffect from readme

Co-authored-by: Joe Duncko JoeDuncko@users.noreply.github.com

Don't miss a new web release

NewReleases is sending notifications on new releases.