Skip to content

Commit 472e6a2

Browse files
committed
updated the docs: skip specific request retry
1 parent a79e9fc commit 472e6a2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,10 @@ The `loginConfirmed` method supports the injection of an Updater function that w
8686

8787
The 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+
})

0 commit comments

Comments
 (0)