import { useRef, useCallback, useEffect } from "react";
function useSkipInitialEffect(callback, dependencies) {
  const isFirstRender = useRef(true);
  const memoizedCallback = useCallback(callback, dependencies);
  useEffect(() => {
    if (isFirstRender.current) {
      isFirstRender.current = false;
      return;
    }
    return memoizedCallback();
  }, [memoizedCallback]);
}
export {
  useSkipInitialEffect
};
//# sourceMappingURL=use-skip-initial-effect.js.map
