import { useRef, useEffect } from 'react';

function usePrevious(value, initialValue) {
  const ref = useRef(initialValue);
  useEffect(() => {
    ref.current = value;
  }, [value]);
  return ref.current;
}

export { usePrevious as u };
//# sourceMappingURL=usePrevious-Bvq-5auG.js.map
