forked from Abdulbari/sgeUpdated
git-subtree-dir: sge-frontend git-subtree-mainline:876c278ac4git-subtree-split:5fa787e054
16 lines
341 B
JavaScript
16 lines
341 B
JavaScript
import { useDispatch } from "react-redux";
|
|
import React from "react";
|
|
import { getUsersHttp } from "../../redux/actions/users";
|
|
|
|
function useGetUsers()
|
|
{
|
|
const dispatch = useDispatch()
|
|
React.useEffect(() => {
|
|
console.log("get userss");
|
|
dispatch(getUsersHttp());
|
|
}, []);
|
|
}
|
|
|
|
export default useGetUsers;
|
|
|
|
|