File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export function useBaseQuery<
4949 const errorResetBoundary = useQueryErrorResetBoundary ( )
5050 const defaultedOptions = client . defaultQueryOptions ( options )
5151
52- ; ( client . getDefaultOptions ( ) as any ) . _experimental_beforeQuery ?.(
52+ ; ( client . getDefaultOptions ( ) . queries as any ) . _experimental_beforeQuery ?.(
5353 defaultedOptions ,
5454 )
5555
@@ -125,7 +125,10 @@ export function useBaseQuery<
125125 throw result . error
126126 }
127127
128- ; ( client . getDefaultOptions ( ) as any ) . afterQuery ?.( defaultedOptions , result )
128+ ; ( client . getDefaultOptions ( ) . queries as any ) . _experimental_afterQuery ?.(
129+ defaultedOptions ,
130+ result ,
131+ )
129132
130133 // Handle result property usage tracking
131134 return ! defaultedOptions . notifyOnChangeProps
You can’t perform that action at this time.
0 commit comments