File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
tanstack-query/src/runtime Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ export async function fetcher<R, C extends boolean>(
386386 ( typeof fetch === 'function'
387387 ? fetch
388388 : // fallback to 'cross-fetch' if otherwise
389- ( await import ( 'cross-fetch' ) ) . fetch ) ;
389+ ( await import ( 'cross-fetch' ) ) . default ) ;
390390
391391 const res = await _fetch ( url , options ) ;
392392 if ( ! res . ok ) {
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ export async function fetcher<R, C extends boolean>(
143143 ( typeof fetch === 'function'
144144 ? fetch
145145 : // fallback to 'cross-fetch' if otherwise
146- ( await import ( 'cross-fetch' ) ) . fetch ) ;
146+ ( await import ( 'cross-fetch' ) ) . default ) ;
147147
148148 const res = await _fetch ( url , options ) ;
149149 if ( ! res . ok ) {
You can’t perform that action at this time.
0 commit comments