'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var React = require('react');

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

exports.useDidMountLayoutEffect = useDidMountLayoutEffect;
