diff --git a/.changeset/spotty-cheetahs-live.md b/.changeset/spotty-cheetahs-live.md new file mode 100644 index 0000000000..d5b34158d0 --- /dev/null +++ b/.changeset/spotty-cheetahs-live.md @@ -0,0 +1,5 @@ +--- +"@remix-run/router": patch +--- + +Detect no lazy data and remove abort controller for defer diff --git a/packages/router/utils.ts b/packages/router/utils.ts index 8506e709a1..172d52c36a 100644 --- a/packages/router/utils.ts +++ b/packages/router/utils.ts @@ -1192,6 +1192,11 @@ export class DeferredData { {} ); + if (this.done) { + // All incoming values were resolved + this.unlistenAbortSignal(); + } + this.init = responseInit; }