Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Commit 3c19c7e

Browse files
committed
Fix example, add sandbox config
1 parent fe43058 commit 3c19c7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/svelte-counter/sandbox.config.json

Whitespace-only changes.

examples/svelte-counter/src/services/counter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export const counterApi = createApi({
1414
provides: [{ type: 'Counter' }],
1515
}),
1616
incrementCount: build.mutation<CountResponse, number>({
17-
query: (body) => ({
17+
query: (amount) => ({
1818
url: `/increment`,
19-
method: 'PUT',
20-
body, // Very clever!
19+
method: 'PUT',
20+
body: { amount },
2121
}),
2222
invalidates: [{ type: 'Counter' }],
2323
}),

0 commit comments

Comments
 (0)