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>(
386
386
( typeof fetch === 'function'
387
387
? fetch
388
388
: // fallback to 'cross-fetch' if otherwise
389
- ( await import ( 'cross-fetch' ) ) . fetch ) ;
389
+ ( await import ( 'cross-fetch' ) ) . default ) ;
390
390
391
391
const res = await _fetch ( url , options ) ;
392
392
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>(
143
143
( typeof fetch === 'function'
144
144
? fetch
145
145
: // fallback to 'cross-fetch' if otherwise
146
- ( await import ( 'cross-fetch' ) ) . fetch ) ;
146
+ ( await import ( 'cross-fetch' ) ) . default ) ;
147
147
148
148
const res = await _fetch ( url , options ) ;
149
149
if ( ! res . ok ) {
You can’t perform that action at this time.
0 commit comments