Skip to content

Commit 45d2330

Browse files
committed
pretty
1 parent f416a94 commit 45d2330

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.changeset/four-walls-read.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

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

7-
87
`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.
98

109
**Note:**
@@ -17,4 +16,4 @@ return handler(reqOrResp, env, ctx);
1716

1817
// After:
1918
return handler(reqOrResp, env, ctx, request.signal);
20-
```
19+
```

0 commit comments

Comments
 (0)