Skip to content

Commit 0e083c6

Browse files
authored
refactor(react-query): change the order of const variables (#9211)
1 parent 0cbfc5e commit 0e083c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-query/src/useBaseQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ export function useBaseQuery<
4949
}
5050
}
5151

52-
const client = useQueryClient(queryClient)
5352
const isRestoring = useIsRestoring()
5453
const errorResetBoundary = useQueryErrorResetBoundary()
54+
const client = useQueryClient(queryClient)
5555
const defaultedOptions = client.defaultQueryOptions(options)
5656

5757
;(client.getDefaultOptions().queries as any)?._experimental_beforeQuery?.(

0 commit comments

Comments
 (0)