use-state-if-mounted (npm): A hook for updating state only if the component is mounted.
Keywords: react|hooks|react-hooks|useState|isMounted