React Query Integration for Server State Sync in Clinet #245
@ -278,7 +278,7 @@ export const useProjectsByEmployee = (employeeId) =>
|
||||
export const useProjectName = () =>
|
||||
{
|
||||
const {data = [],isLoading,error,refetch} = useQuery( {
|
||||
queryFn: [ "basicProjectNameList" ],
|
||||
queryKey: [ "basicProjectNameList" ],
|
||||
queryFn: async () =>
|
||||
{
|
||||
const res = await ProjectRepository.projectNameList();
|
||||
|
Loading…
x
Reference in New Issue
Block a user