suspense loading added and made socket to trigger after login

This commit was merged in pull request #853.
This commit is contained in:
victorAnumudu
2024-11-23 05:56:17 +01:00
parent 6b95b8d1ce
commit c889c0b093
8 changed files with 114 additions and 95 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export default function OffersInterestPage() {
let {joinRoom} = SocketValues() // function to join room for socket
const apiCall = useMemo(()=>{new usersService()},[])
const apiCall = useMemo(()=> new usersService(),[])
let {commonHeadBanner} = useSelector(state => state.commonHeadBanner)
+1 -1
View File
@@ -5,7 +5,7 @@ import { useLocation } from "react-router-dom";
export default function ResourcePage() {
const {state} = useLocation() // CHECKS IF THERE IS AN ACTIVE TAB WITH LINK BACK TO RESOURCES
const [MyResourceData, setMyResourceData] = useState([]);
const api = useMemo(()=>{new usersService()},[]);
const api = useMemo(()=> new usersService(),[]);
const getMyResourceData = useCallback( async () => {
try {
const res = await api.getResourceList();