File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -86,3 +86,10 @@ The `loginConfirmed` method supports the injection of an Updater function that w
8686
8787The initial failed request will now be retried, all queued http requests will be recalculated using the Updater-Function.
8888
89+ It is also possible to stop specific request from being retried, by returning `` false `` from the Updater-Function:
90+
91+ authService.loginConfirmed('success', function(config){
92+ if (shouldSkipRetryOnSuccess(config))
93+ return false;
94+ return config;
95+ })
Original file line number Diff line number Diff line change 122122 */
123123 retryAll : function ( updater ) {
124124 for ( var i = 0 ; i < buffer . length ; ++ i ) {
125- retryHttpRequest ( updater ( buffer [ i ] . config ) , buffer [ i ] . deferred ) ;
125+ var _cfg = updater ( buffer [ i ] . config ) ;
126+ if ( _cfg !== false )
127+ retryHttpRequest ( _cfg , buffer [ i ] . deferred ) ;
126128 }
127129 buffer = [ ] ;
128130 }
You can’t perform that action at this time.
0 commit comments