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.
@@ -5801,7 +5801,7 @@
5801
5801
  return {
5802
5802
  selectedIndexes: react.exports.useMemo(() => es2018Exports.toArray(selectedIndexes), [selectedIndexes]),
5803
5803
  optionStates: react.exports.useMemo(createOptionStates, [options, selectedIndexes]),
5804
- toggle: react.exports.useCallback(toggle, []),
5804
+ toggle: react.exports.useCallback(toggle, [selectedIndexes]),
5805
5805
  select: react.exports.useCallback(select, []),
5806
5806
  unselect: react.exports.useCallback(unselect, [])
5807
5807
  };