Skip to content

Commit 5e53436

Browse files
committed
add changelog link
1 parent 45d2330 commit 5e53436

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.changeset/four-walls-read.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44

55
Ensure that the initial request.signal is passed to the wrapper
66

7-
`request.signal.onabort` is now supported in route handlers. It requires that the signal from the original worker's request is passed to the handler. It will then pass along that `AbortSignal` through the `streamCreator` in the wrapper. This will destroy the response sent to NextServer when a client aborts, thus triggering the signal in the route handler.
7+
`request.signal.onabort` is now supported in route handlers. It requires that the signal from the original worker's request is passed to the handler. It will then pass along that `AbortSignal` through the `streamCreator` in the wrapper. This signal will destroy the response sent to NextServer when a client aborts, thus triggering the signal in the route handler.
8+
9+
See the changelog in Cloudflare [here](https://developers.cloudflare.com/changelog/2025-05-22-handle-request-cancellation/).
10+
11+
You also need to enable the compatibility flag `enable_request_signal` to use this feature.
812

913
**Note:**
10-
If you have a custom worker, you must update your code to pass the original `request.signal` to the handler.
14+
If you have a custom worker, you must update your code to pass the original `request.signal` to the handler. You also need to enable the compatibility flag:
1115
For example:
1216

1317
```js

0 commit comments

Comments
 (0)