We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 205e85f commit ec1f16eCopy full SHA for ec1f16e
packages/next/src/server/lib/dedupe-fetch.ts
@@ -104,8 +104,11 @@ export function createDedupeFetch(originalFetch: typeof fetch) {
104
// doesn't include all the options in this environment. We also pass a
105
// signal down to the original fetch as to bypass the underlying React fetch
106
// cache.
107
- const signal = new AbortSignal()
108
- const promise = originalFetch(resource, { ...options, signal })
+ const controller = new AbortController()
+ const promise = originalFetch(resource, {
109
+ ...options,
110
+ signal: controller.signal,
111
+ })
112
const entry: CacheEntry = [cacheKey, promise, null]
113
cacheEntries.push(entry)
114
0 commit comments