@react-hookz/web
Advanced tools
Changelog
11.0.0 (2021-09-28)
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