From 3b9c07b60a859e3e3d870da2f79c10db54a42d04 Mon Sep 17 00:00:00 2001 From: hdbdbeben <87699817+hdbdbeben@users.noreply.github.com> Date: Sat, 28 Dec 2024 12:43:13 +0300 Subject: [PATCH] docs(async): fix resource example example reatomResource fix: wrong params in request bResource --- docs/src/content/docs/package/async.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/package/async.md b/docs/src/content/docs/package/async.md index 58ea5f2d..62f2e995 100644 --- a/docs/src/content/docs/package/async.md +++ b/docs/src/content/docs/package/async.md @@ -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') ```