diff --git a/src/components/account_view/AccountViewCom.jsx b/src/components/account_view/AccountViewCom.jsx index ae3720d..30dc169 100644 --- a/src/components/account_view/AccountViewCom.jsx +++ b/src/components/account_view/AccountViewCom.jsx @@ -1,5 +1,5 @@ import {useEffect, useState} from 'react' -import { useQuery } from '@tanstack/react-query' +import { useQuery, useQueryClient } from '@tanstack/react-query' import {useLocation, useNavigate, Link} from 'react-router-dom' @@ -14,6 +14,8 @@ import CustomerPaymentsView from "./CustomerPaymentsView"; export default function AccountViewCom() { + const queryClient = useQueryClient() + const {state} = useLocation() const navigate = useNavigate() @@ -43,6 +45,14 @@ export default function AccountViewCom() { const payments = accountsViewData?.payments // console.log('DATA', payments, subscriptions) + useEffect(()=>{ + queryClient.refetchQueries({ + queryKey: [...queryKeys.account_view], + // type: 'active', + // exact: true, + }) + },[state?.memberUID]) + return (
{item.firstname} {item.lastname}
-{item.username}
-{item.firstname} {item.lastname}
+{item.username}
+Recent Deployments
{isFetching ? @@ -46,7 +49,7 @@ export default function Tickets({data, isFetching, isError, error}) {Recent Signup
{isFetching ?{error?.message}
:Project Briefing
-Project Manager
-Project Briefing
-Project Manager
-Project Briefing
-Project Manager
-Project Briefing
-Project Manager
-{item.firstname} {item.lastname}
+{item.username}
+