Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

invalidations-from-mutations.md

21 lines440 Bytes

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'