Skip to content

Commit

Permalink
Update changeset to ensure proper frontmatter and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Dec 6, 2023
1 parent eb0acd5 commit e49be51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-zoos-collect.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
@apollo/client: minor
---

Adds a new `skipPollAttempt` callback function that's called whenever a refetch attempt occurs while polling. If the function returns `true`, the refetch is skipped and not reattempted until the next poll interval. This will solve the frequent use-case of disabling polling when the window is inactive.

```ts
useQuery(QUERY, {
pollInterval: 1000,
Expand Down

0 comments on commit e49be51

Please sign in to comment.