if(val && typeof val.then === 'function') {
          return val.then((res) => {
            setVal(props, res);
          });
        }