react-is-mounted-hook icon indicating copy to clipboard operation
react-is-mounted-hook copied to clipboard

Hook returns newly created function on every call

Open wialy opened this issue 5 years ago • 1 comments

Currently the hook returns new function on every call, so using it in effect dependencies causes calling effect on every render. The result should be a react useCallback.

wialy avatar Apr 03 '20 15:04 wialy

PR #1 deals with this well.

mmavko avatar Jul 27 '20 10:07 mmavko