• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Joris-van-der-Wel / meridvia / 54
98%

Build:
DEFAULT BRANCH: master
Ran 11 Sep 2019 09:47AM UTC
Jobs 1
Files 15
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
54

push

travis-ci

Joris-van-der-Wel
Do not automatically invalidate resources if the fetch action throws/rejects

This is a breaking change. However it gives users of this library more control over what happens if an error occurs in a resource. Instead of forcefully invalidating the resource, errors are now treated the same way as normal return values. The default behaviour is that errors are kept as long there is a transaction that is using the resource. This behaviour can be tweaked by using the new "maximumRejectedStaleness" setting, which works the same as "maximumStaleness", however it only has an effect if the resource instance had thrown an error or returned a rejected promise.

To get the old behaviour use:

```js
manager.resource({
  name: 'food',
  fetch: async (params, {invalidate}) => {
    try {
      await foodFromApi(params);
    }
    catch(err) {
      invalidate();
      throw err;
    }
  },
})
```

151 of 151 branches covered (100.0%)

Branch coverage included in aggregate %.

455 of 455 relevant lines covered (100.0%)

141.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 54.1 11 Sep 2019 09:47AM UTC 0
100.0
Travis Job 54.1
Source Files on build 54
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #54
  • ce80b45d on github
  • Prev Build on master (#50)
  • Next Build on master (#56)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc