We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb97d9e commit 2a85cb7Copy full SHA for 2a85cb7
devtools/src/app/pages/mutations-test.vue
@@ -29,7 +29,7 @@ const { mutate: failableMutation, asyncStatus: failableStatus } = useMutation({
29
30
// Mutation 3: Long-running mutation
31
const { mutate: longMutation, asyncStatus: longStatus } = useMutation({
32
- key: () => ['long-running-mutation'],
+ key: ({ duration }) => ['long-running-mutation', { duration }],
33
mutation: async (data: { duration: number }) => {
34
await delay(data.duration)
35
return { completed: true, duration: data.duration }
0 commit comments