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 3ee5bd8 commit 4be599fCopy full SHA for 4be599f
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() as any)._experimental_beforeQuery?.(
+ ;(client.getDefaultOptions().queries as any)._experimental_beforeQuery?.(
53
defaultedOptions,
54
)
55
@@ -125,7 +125,10 @@ export function useBaseQuery<
125
throw result.error
126
}
127
128
- ;(client.getDefaultOptions() as any).afterQuery?.(defaultedOptions, result)
+ ;(client.getDefaultOptions().queries as any)._experimental_afterQuery?.(
129
+ defaultedOptions,
130
+ result,
131
+ )
132
133
// Handle result property usage tracking
134
return !defaultedOptions.notifyOnChangeProps
0 commit comments