'use strict';

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

var React = require('react');

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

exports.useDidMountEffect = useDidMountEffect;
