Skip to content

Commit

Permalink
fix: update refetchInterval default to Infity (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver authored Dec 14, 2020
1 parent d83c1a5 commit 70794e4
Show file tree
Hide file tree
Showing 6 changed files with 604 additions and 592 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Usage:
Invoke the query in the background every x milliseconds, and emit the new value when the query is resolved.
[Example](https://timdeschryver.github.io/rx-query/?path=/story/rx-query--refresh-on-interval).

Default: `Number.MAX_VALUE`
Default: `Infinity`

Usage:

Expand Down Expand Up @@ -317,6 +317,18 @@ Usage:
}
```

### Config override

To override the defaults for all queries, you can use the `setQueryConfig` method.

```ts
setQueryConfig({
refetchOnWindowFocus: false,
retries: 0,
cacheTime: 60_000,
});
```

## Inspiration

This library is inspired by:
Expand Down
Loading

0 comments on commit 70794e4

Please sign in to comment.