Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated request locals docs #789

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
632448d
updated request locals docs
doeixd Jun 21, 2024
00546a3
Merge branch 'main' into request-event-locals
atilafassina Sep 27, 2024
728335e
Merge branch 'main' into request-event-locals
kodiakhq[bot] Sep 27, 2024
2145241
Merge branch 'main' into request-event-locals
kodiakhq[bot] Sep 28, 2024
46a73be
Merge branch 'main' into request-event-locals
kodiakhq[bot] Sep 29, 2024
e6ef900
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 3, 2024
832b999
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 4, 2024
c0f10f0
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 4, 2024
eae3b69
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 7, 2024
efed68a
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 8, 2024
6aa2b5f
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 9, 2024
fb2d9e3
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 9, 2024
ba273c5
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 13, 2024
2b579dc
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 14, 2024
b39d99b
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 15, 2024
e6a2339
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 16, 2024
ac4297d
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 17, 2024
2bbf8b0
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 24, 2024
43b2a88
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 24, 2024
ef6e828
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 24, 2024
33c19e3
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 24, 2024
575a469
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 24, 2024
3de858c
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 30, 2024
6c27dbf
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 30, 2024
07583aa
Merge branch 'main' into request-event-locals
kodiakhq[bot] Oct 31, 2024
43d17b5
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 3, 2024
b87fd70
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 3, 2024
e45af92
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 3, 2024
7852f04
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 4, 2024
9ffcfaf
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/routes/solid-start/advanced/request-events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ SolidStart uses `event.locals` to pass around a local context where needed.

When adding fields to `event.locals`, the fields can be typed:

```tsx
declare module "@solidjs/start/server" {
interface RequestEventLocals {
myNumber: number;
someString: string;
}
```tsx filename="global.d.ts'
/// <reference types="@solidjs/start/env" />
declare module App {
interface RequestEventLocals {
/**
* Declare your getRequestEvent().locals here
*/
}
}
```

Expand Down
Loading