Open History to see the last commit
1<script lang="ts">
2 import {
3 createMutation,
4 QueryClient,
5 type CreateMutationOptions,
6 } from '../index'
7 import { setQueryClientContext } from '../context'
8β
9 export let options: CreateMutationOptions
10β
11 const queryClient = new QueryClient()
12 setQueryClientContext(queryClient)
13β
14 const mutation = createMutation(options)
15</script>
16β
17<button on:click={() => $mutation.mutate()}>Click</button>