Skip to content

Commit 41550a3

Browse files
committed
update
1 parent 8110eda commit 41550a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/routes/reference/server-utilities/get-request-event.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ function getRequestEvent(): RequestEvent | undefined;
3737

3838
## Behavior
3939

40-
- On the server, the returned event includes the current `Request`.
41-
- In the server declarations here, `RequestEvent` also includes `locals`.
42-
- If no request event is available, `getRequestEvent` returns `undefined`.
40+
- `getRequestEvent` is for managed server/request scope.
41+
- When available, the returned event includes the current `Request`. In the server type, it also includes `locals`.
42+
- If no current request event is available, including outside managed async scope, `getRequestEvent` returns `undefined`.
4343

4444
## Examples
4545

0 commit comments

Comments
 (0)