score:0

myMethod = () => {
  setTimeout(()=> {
   if(!this.state.otherFuncHasBeenCalled) { // wait 5 sec for check
    this.setState(
      {otherFuncHasBeenCalled: true}, // update state
      this.myMethod  // run again after state has been set
   }
  },5000)
}

Related Query

More Query from same tag