Skip to content

Commit

Permalink
docs(async): fix resource example
Browse files Browse the repository at this point in the history
example reatomResource  fix: wrong params in request bResource
  • Loading branch information
hdbdbeben authored Dec 28, 2024
1 parent 80738c5 commit 3b9c07b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/content/docs/package/async.md
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ const aResource = reatomResource(async (ctx) => {
}, 'aResource')
const bResource = reatomResource(async (ctx) => {
const a = await ctx.spy(aResource.promiseAtom)
return await ctx.schedule(() => request(`/api/b/${b}`, ctx.controller))
return await ctx.schedule(() => request(`/api/b/${a}`, ctx.controller))
}, 'bResource')
```

Expand Down

0 comments on commit 3b9c07b

Please sign in to comment.