keshidong / react-use-that

Basic and powful react hooks
5 stars 0 forks source link

bug: about the second parameter setState of useState hook, fn may not be called when exec setState(s, fn) #7

Closed keshidong closed 5 years ago

keshidong commented 5 years ago

About the second parameter setState of useState hook, fn may not be executed when setState(s, fn) . Execute setState(s, fn), the fn will not be called when s not changed.

keshidong commented 5 years ago

Resolved by Pull request #9