profile update
This commit is contained in:
@@ -36,11 +36,15 @@ const ProfileView = () => {
|
||||
|
||||
const id = params?.id;
|
||||
|
||||
const { data, isLoading, errors } = useGetInvestorsDetailsByIdQuery(id, {
|
||||
const { data, isLoading, errors, refetch} = useGetInvestorsDetailsByIdQuery(id, {
|
||||
skip: !id,
|
||||
});
|
||||
|
||||
|
||||
// Use useEffect to refetch data when the component mounts
|
||||
useEffect(() => {
|
||||
refetch();
|
||||
}, [refetch]);
|
||||
|
||||
const foundObject = data?.data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user