MOKAJIMA.COM

Updated 56 days ago
  • ID: 45967138/30
React Hook React.useCallback has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when any prop changes, so the preferred fix is to destructure the 'props' object outside of the useCallback call and refer to those specific props inside React.useCallback react-hooks/exhaustive-deps... The reason plugin sees it differently is because by doingyou are actually passingitself as avalue to. So technically it would see stale props. https://github.com/facebook/react/issues/16265
  • 0
  • 0
Interest Score
2
HIT Score
0.71
Domain
mokajima.com

Actual
mokajima.com

IP
13.228.199.255, 18.139.194.139

Status
OK

Category
Company
0 comments Add a comment