Skip to content

Commit cf8a765

Browse files
authored
test(react-query/useQuery): rename 'throwOnError' callback parameter to 'err' to avoid 'no-shadow' with outer 'error' (TanStack#10550)
1 parent a652526 commit cf8a765

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-query/src/__tests__/useQuery.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6846,7 +6846,7 @@ describe('useQuery', () => {
68466846
const { status, error } = useQuery({
68476847
queryKey: key,
68486848
queryFn,
6849-
throwOnError: (error) => error.message.includes('404'),
6849+
throwOnError: (err) => err.message.includes('404'),
68506850
retryOnMount: true,
68516851
staleTime: Infinity,
68526852
retry: false,

0 commit comments

Comments
 (0)