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 3c19c7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Empty file.
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 3c19c7e

Please sign in to comment.