Closed rohitgulia closed 5 years ago
To be honest I did not know that was the official signature of setTimeout
. I'll have to look into that.
In the meantime you could just wrap your function in an anonymous function to get the same result:
this.timeOut = setTimeout(() => this.handleClickOnRoute(selectedRouteData), 5000);
I'll cut a minor release with this soon.
I'll cut a minor release with this soon.
Thanks for the reply @plougsgaard
When function runs next time it passes null argument. I am not able to figure out how to pass argument to it. Normally in timeout we have third parameter to pass as argument, but that doesn't work here i guess.