我是Angular.JS中的新手,我正在尝试进行依赖注入,但我得到了以下信息:app.factory('Reload', function (load, $timeout,/libs/angularjs/1.0.7/angular.js:2862:39)
at http://ajax.googleapis.com/ajax/libs/ang
Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
为什么我仍然在未挂载组件中设置状态时出错?在错误跟踪中,它指向foo()中的foo()。我清除异步计时器,并在执行api调用