React hook which returns the latest callback without changing the reference
npm install use-latest-callback