import { useRef, useLayoutEffect } from 'react';

var useDidMountLayoutEffect = function useDidMountLayoutEffect(fn, inputs) {
  var didMountRef = useRef(false);
  useLayoutEffect(function () {
    if (didMountRef.current) {
      fn();
    } else {
      didMountRef.current = true;
    }
  }, inputs);
};

export { useDidMountLayoutEffect };
