code: function (fn) {
      !(showDialog === defaultShowDialog) ? invariant(false, 'The custom dialog was already injected.') : void 0;
      !(typeof fn === 'function') ? invariant(false, 'Injected showDialog() must be a function.') : void 0;
      showDialog = fn;
    }
docs: Display custom dialog for lifecycle errors.
  Return false to prevent default behavior of logging to console.error.