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 57 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
57 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
21bfac8
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 11, 2024
e9838f3
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 11, 2024
03321fc
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 20, 2024
eaeb462
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 21, 2024
283a528
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 23, 2024
4d44492
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 24, 2024
32daa3f
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 24, 2024
bd576bd
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 24, 2024
a1d335d
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 24, 2024
bf57e60
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 24, 2024
db53b43
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 25, 2024
4472e3b
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 25, 2024
e497cd0
Merge branch 'main' into request-event-locals
kodiakhq[bot] Nov 26, 2024
7d77c94
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 1, 2024
74d8108
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 1, 2024
f657ec9
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 1, 2024
359bda5
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 1, 2024
bf45ee5
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 1, 2024
fac9754
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 1, 2024
467d665
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 3, 2024
bd29a19
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 3, 2024
ddb2a9c
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 3, 2024
bf264a4
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 3, 2024
94de6d9
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 5, 2024
3b17be1
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 5, 2024
a277419
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 5, 2024
6d62fdd
Merge branch 'main' into request-event-locals
kodiakhq[bot] Dec 6, 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