Pack of hooks for convenient values comparison.
npm install @nwbm/use-changes
Execute callback when the given value has changed, accordingly to given comparator logic.
Returns new value of given one only if it has changed, accordingly to given comparator logic.
Calculate new value from given one, based on its current a previous value.
Low-level hook, returning "meta" data about the comparison: current value, previous value, and whether the value has changed.