import { u as useEffect } from './f180b4ff.js';
import { t as toastrMessage } from './e1e2ec26.js';

function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }function useAsyncHook(data, args) {
  useEffect(() => {
    data().then(r1 => {
      console.log(r1);
    }).catch(e => {
      toastrMessage(e);
    });
  }, _nullishCoalesce(args, () => ( [])));
}

export { useAsyncHook as u };
//# sourceMappingURL=ddbdb04f.js.map
