@utilityjs/use-previous-value
A React hook that returns a value from the previous render.
A React hook that returns a value from the previous render.
Special version of React's useEffect hook, which allows (1) defining which dependency changes should trigger the effect + (2) accessing both old + new values during effect run
Utility for custom hooks in React
usePrevious tracks the previous value of a variable.