UNPKG

create-swiftstart

Version:

Automate the setup of Vite-React & Next.js projects with a pre-designed boilerplate structure using create-swiftstart. This tool saves your time and provides a clean starting point for your React or Next.js applications.

21 lines (18 loc) 400 B
import { useQuery, useMutation, useQueryClient, useInfiniteQuery } from "@tanstack/react-query"; import QUERY_KEYS from "./queryKeys"; export const useCreateUserAccount = () => { return useMutation({ mutationFn: user => createUserAccount(user) }); }; export const useGetAllUser = () => { return useQuery({ queryKey: [QUERY_KEYS.GET_ALL_POST], queryFn: getAllUser }); };