Skip to content

Commit

Permalink
chore: I don't understand these errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Aug 26, 2024
1 parent 9dbd88a commit e2948d3
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ describe('useInfiniteQuery', () => {
const states: Array<
Partial<CreateInfiniteQueryResult<InfiniteData<number>>>
> = []

let isRefetch = false

function Page() {
Expand Down Expand Up @@ -717,7 +718,7 @@ describe('useInfiniteQuery', () => {
isFetchingNextPage: state.isFetchingNextPage,
isFetchPreviousPageError: state.isFetchPreviousPageError,
isFetchingPreviousPage: state.isFetchingPreviousPage,
isRefetchError: state.isRefetchError,
isRefetchError: state.isRefetchError as true,
isRefetching: state.isRefetching,
})
})
Expand Down Expand Up @@ -828,7 +829,7 @@ describe('useInfiniteQuery', () => {
isFetchingNextPage: state.isFetchingNextPage,
isFetchPreviousPageError: state.isFetchPreviousPageError,
isFetchingPreviousPage: state.isFetchingPreviousPage,
isRefetchError: state.isRefetchError,
isRefetchError: state.isRefetchError as true,
isRefetching: state.isRefetching,
})
})
Expand Down Expand Up @@ -932,7 +933,7 @@ describe('useInfiniteQuery', () => {
isFetchingNextPage: state.isFetchingNextPage,
isFetchPreviousPageError: state.isFetchPreviousPageError,
isFetchingPreviousPage: state.isFetchingPreviousPage,
isRefetchError: state.isRefetchError,
isRefetchError: state.isRefetchError as true,
isRefetching: state.isRefetching,
})
})
Expand Down

0 comments on commit e2948d3

Please sign in to comment.