Skip to content

Commit

Permalink
test(react-query): remove async from queryFn (#8232)
Browse files Browse the repository at this point in the history
  • Loading branch information
saul-atomrigs authored Nov 3, 2024
1 parent 1a8354f commit 0f84062
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ describe('infiniteQueryOptions', () => {
const initialData: { example: boolean } | undefined = { example: true }
const queryOptions = infiniteQueryOptions({
queryKey: ['example'],
queryFn: async () => initialData,
queryFn: () => initialData,
initialData: initialData
? () => ({ pages: [initialData], pageParams: [] })
: undefined,
Expand All @@ -187,7 +187,7 @@ describe('infiniteQueryOptions', () => {
const initialData: { example: boolean } | undefined = { example: true }
const queryOptions = infiniteQueryOptions({
queryKey: ['example'],
queryFn: async () => initialData,
queryFn: () => initialData,
initialData: initialData
? { pages: [initialData], pageParams: [] }
: undefined,
Expand Down

0 comments on commit 0f84062

Please sign in to comment.