Skip to content

Commit 16fe3c5

Browse files
authored
Merge pull request #4661 from easyops-cn/steve/v3-signal
fix(): allow user config to override the default abort signal
2 parents e9025f3 + afc4246 commit 16fe3c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/runtime/src/internal/abortController.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ export function initAbortController() {
1313
return {
1414
...config,
1515
options: {
16-
...config.options,
16+
// Allow user config to override the default abort signal
1717
signal: config.options?.noAbortOnRouteChange
1818
? null
1919
: nativeController.signal,
20+
...config.options,
2021
},
2122
};
2223
});

0 commit comments

Comments
 (0)