We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tannerlinsley
TkDodo
Learn more about funding links in repositories.
Report abuse
1 parent 4be599f commit 56fad10Copy full SHA for 56fad10
packages/react-query/src/useBaseQuery.ts
@@ -49,7 +49,7 @@ export function useBaseQuery<
49
const errorResetBoundary = useQueryErrorResetBoundary()
50
const defaultedOptions = client.defaultQueryOptions(options)
51
52
- ;(client.getDefaultOptions().queries as any)._experimental_beforeQuery?.(
+ ;(client.getDefaultOptions().queries as any)?._experimental_beforeQuery?.(
53
defaultedOptions,
54
)
55
@@ -125,7 +125,7 @@ export function useBaseQuery<
125
throw result.error
126
}
127
128
- ;(client.getDefaultOptions().queries as any)._experimental_afterQuery?.(
+ ;(client.getDefaultOptions().queries as any)?._experimental_afterQuery?.(
129
130
result,
131
0 commit comments