MOKAJIMA.COM
Updated 56 days ago
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