Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
Fix example, add sandbox config
Browse files Browse the repository at this point in the history
  • Loading branch information
msutkowski committed Nov 7, 2020
1 parent fe43058 commit 409650d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions examples/svelte-counter/sandbox.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"template": "node"
}
6 changes: 3 additions & 3 deletions examples/svelte-counter/src/services/counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export const counterApi = createApi({
provides: [{ type: 'Counter' }],
}),
incrementCount: build.mutation<CountResponse, number>({
query: (body) => ({
query: (amount) => ({
url: `/increment`,
method: 'PUT',
body, // Very clever!
method: 'PUT',
body: { amount },
}),
invalidates: [{ type: 'Counter' }],
}),
Expand Down

0 comments on commit 409650d

Please sign in to comment.