extra-react-hooks 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5795,7 +5795,7 @@ function useMultipleSelection(options, defaultSelectedIndexes = []) {
5795
5795
  return {
5796
5796
  selectedIndexes: react.exports.useMemo(() => es2018Exports.toArray(selectedIndexes), [selectedIndexes]),
5797
5797
  optionStates: react.exports.useMemo(createOptionStates, [options, selectedIndexes]),
5798
- toggle: react.exports.useCallback(toggle, []),
5798
+ toggle: react.exports.useCallback(toggle, [selectedIndexes]),
5799
5799
  select: react.exports.useCallback(select, []),
5800
5800
  unselect: react.exports.useCallback(unselect, [])
5801
5801
  };