File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,27 +167,25 @@ export function useBaseQuery<
167167 if ( optimisticResult . isStale ) {
168168 stopWatch ( )
169169 isSuspenseFetching = true
170- observer
171- . fetchOptimistic ( defaultedOptions . value )
172- . then (
173- ( result ) => {
174- isSuspenseFetching = false
175- resolve ( result )
176- } ,
177- ( error : TError ) => {
178- isSuspenseFetching = false
179- if (
180- shouldThrowError ( defaultedOptions . value . throwOnError , [
181- error ,
182- observer . getCurrentQuery ( ) ,
183- ] )
184- ) {
185- reject ( error )
186- } else {
187- resolve ( observer . getCurrentResult ( ) )
188- }
189- } ,
190- )
170+ observer . fetchOptimistic ( defaultedOptions . value ) . then (
171+ ( result ) => {
172+ isSuspenseFetching = false
173+ resolve ( result )
174+ } ,
175+ ( error : TError ) => {
176+ isSuspenseFetching = false
177+ if (
178+ shouldThrowError ( defaultedOptions . value . throwOnError , [
179+ error ,
180+ observer . getCurrentQuery ( ) ,
181+ ] )
182+ ) {
183+ reject ( error )
184+ } else {
185+ resolve ( observer . getCurrentResult ( ) )
186+ }
187+ } ,
188+ )
191189 } else {
192190 stopWatch ( )
193191 resolve ( optimisticResult )
You can’t perform that action at this time.
0 commit comments