Open History to see the last commit
1---
2id: invalidations-from-mutations
3title: Invalidations from Mutations
4ref: docs/framework/react/guides/invalidations-from-mutations.md
5replace:
6 {
7 'React': 'Svelte',
8 '@tanstack/react-query': '@tanstack/svelte-query',
9 'useMutation[(]': 'createMutation(() => ',
10 'hook': 'function',
11 'tsx': 'ts',
12 }
13---
14β
15[//]: # 'Example'
16β
17```ts
18const mutation = createMutation(() => ({ mutationFn: postTodo }))
19```
20β
21[//]: # 'Example'