Skip to content

Commit 2a85cb7

Browse files
committed
chore: pass duration
1 parent fb97d9e commit 2a85cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devtools/src/app/pages/mutations-test.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { mutate: failableMutation, asyncStatus: failableStatus } = useMutation({
2929
3030
// Mutation 3: Long-running mutation
3131
const { mutate: longMutation, asyncStatus: longStatus } = useMutation({
32-
key: () => ['long-running-mutation'],
32+
key: ({ duration }) => ['long-running-mutation', { duration }],
3333
mutation: async (data: { duration: number }) => {
3434
await delay(data.duration)
3535
return { completed: true, duration: data.duration }

0 commit comments

Comments
 (0)