Skip to content

[pull] main from remix-run:main - #318

Merged
pull[bot] merged 2 commits into
code:mainfrom
remix-run:main
Jul 9, 2026
Merged

[pull] main from remix-run:main#318
pull[bot] merged 2 commits into
code:mainfrom
remix-run:main

Conversation

@pull

@pull pull Bot commented Jul 9, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

MahinAnowar and others added 2 commits July 8, 2026 17:40
…er crash (#15286)

When a client aborts a document request, the readable side of the
injectRSCPayload TransformStream is cancelled while a buffered flush
(setTimeout(..., 0)) may still be pending. The timer then enqueues into
a cancelled stream, throwing "TypeError: Invalid state: Unable to
enqueue" from a timer callback — an unhandled rejection that kills the
server process.

Add a cancel() handler that clears the pending flush, drops the buffer,
and cancels the underlying RSC payload stream, plus cancellation guards
on the flush timer and the RSC writer loop.

Fixes #15275

* add a few more tests

---------

Co-authored-by: Jacob Ebey <jacob.ebey@live.com>
@pull pull Bot locked and limited conversation to collaborators Jul 9, 2026
@pull pull Bot added the ⤵️ pull label Jul 9, 2026
@pull
pull Bot merged commit ac5d9d5 into code:main Jul 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants