@@ -166,6 +167,7 @@ const ProfileCompanyEdit = () => {
{
{
const userInfoForm = useForm({
resolver: zodResolver(UserInfoSchema),
});
- const queryClient = useQueryClient();
+ const queryClient = useQueryClient();
const data = queryClient.getQueryData(["myProfileData"]);
const checkNicknameDuplicated = (nickname: string) => {
@@ -76,7 +76,6 @@ const ProfileEdit = () => {
type: "success",
isDarkMode,
});
- await queryClient.invalidateQueries({ queryKey: ["myProfileData"] });
await queryClient.refetchQueries({ queryKey: ["myProfileData"] });
})
.catch(() => {
@@ -110,7 +109,6 @@ const ProfileEdit = () => {
type: "success",
isDarkMode,
});
- await queryClient.invalidateQueries({ queryKey: ["myProfileData"] });
await queryClient.refetchQueries({ queryKey: ["myProfileData"] });
navigate("/profile");
})
@@ -146,7 +144,7 @@ const ProfileEdit = () => {