react-onclickoutside
react-onclickoutside copied to clipboard
onClickOutside decorator get static methods
Any way to get onClickOutside decorator get static methods ? I have exp with autobind decorator and it works fine with static
Im not sure if I understand what do you mean, could you please give an example code snippet with the expected behaviour explained?
@onClickOutside
class Abc {
static getMeSomething() {}
}
in this case Abc.getMeSomething undefined
I guess it would require using hoist-non-react-statics
but is it should be done on onClickOutside lib side ?
yeah
@Andarist Hello, don't you mind if i create PR adding hoist-non-react-statics
as library's pear dependency?
What would be the benefit of static methods, and which ones are you thinking of? (e.g. what use case would be enabled by adding them).