File size: 302 Bytes
5306da4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import { useAppDispatch } from "@/redux/hooks";
import { getChats } from "@/redux/slices/chatsSlice";
import { useEffect } from "react";
const FetchData = () => {
const dispatch = useAppDispatch();
useEffect(() => {
dispatch(getChats());
}, []);
return null;
};
export default FetchData;
|