You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is probably an angular issue but here's the scenario:
// setup controllerconstunsubscribe=$ngRedux.connect(state=>this.mapStateToThis(state,privileges),),// this auto-injects the actions bound to ngRedux.dispatchObject.assign({},Actions,AsyncActions))(this)// thunk action creatorcancelSave(appUtilization){returndispatch=>{dispatch(AppActions.resetApp());appUtilization.$setPristine();}}// template that breaks<save-settings-panelcancel-action="$ctrl.cancelSave($ctrl.appUtilization)"></save-settings-panel>
Update: after doing a bit of research, it seems that #cancelSave will be called on each iteration of the digest loop. (See for example, http://stackoverflow.com/a/26783778/555493) Hence, the digest error.
The question then is how am I supposed to use #cancelSave without creating a proxy function in the controller?
The text was updated successfully, but these errors were encountered:
@frankandrobot were you able to resolve this issue? I don't believe it's ng-redux related. My guess is that whatever is calling $ctrl.cancelSave is doing so at the wrong time or in the wrong place?
I'm getting this error when I add a bound thunk action to an attribute.
It is probably an angular issue but here's the scenario:
Update: after doing a bit of research, it seems that #cancelSave will be called on each iteration of the digest loop. (See for example, http://stackoverflow.com/a/26783778/555493) Hence, the digest error.
The question then is how am I supposed to use #cancelSave without creating a proxy function in the controller?
The text was updated successfully, but these errors were encountered: