Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3586411

Browse filesBrowse files
Elab4d1AndrewKushnir
authored andcommitted
docs: fix incorrect destructuring in resource loader example in signals guide (#61988)
PR Close #61988
1 parent 4f0221e commit 3586411
Copy full SHA for 3586411

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎adev/src/content/guide/signals/resource.md

Copy file name to clipboardExpand all lines: adev/src/content/guide/signals/resource.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ const userId: Signal<string> = getUserId();
6060

6161
const userResource = resource({
6262
params: () => ({id: userId()}),
63-
loader: ({request, abortSignal}): Promise<User> => {
63+
loader: ({params, abortSignal}): Promise<User> => {
6464
// fetch cancels any outstanding HTTP requests when the given `AbortSignal`
6565
// indicates that the request has been aborted.
66-
return fetch(`users/${request.id}`, {signal: abortSignal});
66+
return fetch(`users/${params.id}`, {signal: abortSignal});
6767
},
6868
});
6969
```

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.