Skip to content

Commit

Permalink
Merge branch 'master' into noInternet
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga authored Feb 16, 2024
2 parents afe9e81 + e936265 commit 2d587d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ This one is quite useful if you need to change the parameters which are going to
```

#### beforeSend:

These are similar to beforeSend but works for all requests (GET, PUT, DELETE, POST). If you specify both `beforePost` and `beforeLoad` then `beforePost` will go first, then `beforeSend`. Inside `beforeSend` or `beforePost` you can call the `callback()` method with `skip:true` so it will still fire your `success` callback but _without_ making the API call. Use this e.g. to load offline fallback data inside your `success` method:
This is similar to beforePost but works for all requests (GET, PUT, DELETE, POST). If you specify both beforePost and beforeSend then beforePost will go first, then beforeSend.

**Example:**
```javascript
Expand Down

0 comments on commit 2d587d3

Please sign in to comment.