UNPKG
vite-template-mantine
Version:
latest (1.0.1)
1.0.1
1.0.0
Custom Vite React TypeScript template
vite-template-mantine
/
src
/
entities
/
testApis
/
model
/
test-actions.queries.ts
14 lines
(10 loc)
•
284 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{ useMutation }
from
"@tanstack/react-query"
;
import
{ testApi }
from
"@/shared/api/test-api.ts"
;
export
const
useTestActions
= (
) => {
const
postTest =
useMutation
({
mutationFn
:
(
value: FormData
) =>
testApi.
postTestData
(value), });
return
{ postTest, }; };