Skip to content

Commit

Permalink
feat: streamline cancelRefetch
Browse files Browse the repository at this point in the history
refetch never took a queryKey as param - it is always bound to the observer
  • Loading branch information
TkDodo committed Nov 13, 2021
1 parent 8af0081 commit 9048c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/tests/queryObserver.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ describe('queryObserver', () => {
select: () => selectedData,
})

await observer.refetch({ queryKey: key })
await observer.refetch()
expect(observer.getCurrentResult().data).toBe(selectedData)

unsubscribe()
Expand Down

0 comments on commit 9048c89

Please sign in to comment.