Pomax / react-onclickoutside

An onClickOutside wrapper for React components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using with redux

bill-oneil opened this issue · comments

How is the react-onclickoutside used with redux?
I used this as follow, but don't received xxx and yyy from UNSAFE_componentWillReceiveFromProps.

var clickOutsideConfig = {
excludeScrollbar: true
};

export default connect (
(state) => ({
xxx: state.vvvModule.get('xxx'),
yyy: state.zzzModule.get('yyy'),
}),
null
)(onClickOutside(CustomPicker, clickOutsideConfig));