Skip to content

Commit 31990be

Browse files
authored
Remove abort controller for defer with only critical data (#9965)
1 parent 0379d51 commit 31990be

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/spotty-cheetahs-live.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@remix-run/router": patch
3+
---
4+
5+
Detect no lazy data and remove abort controller for defer

packages/router/utils.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,6 +1192,11 @@ export class DeferredData {
11921192
{}
11931193
);
11941194

1195+
if (this.done) {
1196+
// All incoming values were resolved
1197+
this.unlistenAbortSignal();
1198+
}
1199+
11951200
this.init = responseInit;
11961201
}
11971202

0 commit comments

Comments
 (0)