Skip to content

Commit 3b9c07b

Browse files
authored
docs(async): fix resource example
example reatomResource fix: wrong params in request bResource
1 parent 80738c5 commit 3b9c07b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/content/docs/package/async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ const aResource = reatomResource(async (ctx) => {
829829
}, 'aResource')
830830
const bResource = reatomResource(async (ctx) => {
831831
const a = await ctx.spy(aResource.promiseAtom)
832-
return await ctx.schedule(() => request(`/api/b/${b}`, ctx.controller))
832+
return await ctx.schedule(() => request(`/api/b/${a}`, ctx.controller))
833833
}, 'bResource')
834834
```
835835

0 commit comments

Comments
 (0)