Add util for handling promise cancelation to avoid setting state on unmounted components
Add util for handling promise cancelation to avoid setting state on unmounted components

https://github.com/facebook/react/issues/5465

grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana