react-is-mounted-hook
react-is-mounted-hook copied to clipboard
Hook returns newly created function on every call
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.
PR #1 deals with this well.