diff --git a/documentation/tutorial/authentication/logging-in-out/index.md b/documentation/tutorial/authentication/logging-in-out/index.md index f2f0957a1056e..4a07433ec41df 100644 --- a/documentation/tutorial/authentication/logging-in-out/index.md +++ b/documentation/tutorial/authentication/logging-in-out/index.md @@ -118,10 +118,7 @@ import { useLogin } from "@refinedev/core"; export const Login = () => { // highlight-next-line - const { - mutate, - mutation: { isPending }, - } = useLogin(); + const { mutate, isPending } = useLogin(); const onSubmit = (event: React.FormEvent) => { event.preventDefault(); @@ -275,10 +272,7 @@ import { useLogout } from "@refinedev/core"; export const Header = () => { // highlight-next-line - const { - mutate, - mutation: { isPending }, - } = useLogout(); + const { mutate, isPending } = useLogout(); return ( <> diff --git a/documentation/tutorial/routing/navigation/react-router/index.md b/documentation/tutorial/routing/navigation/react-router/index.md index 8150a1c19e4ba..33a0380d6a2ac 100644 --- a/documentation/tutorial/routing/navigation/react-router/index.md +++ b/documentation/tutorial/routing/navigation/react-router/index.md @@ -31,10 +31,7 @@ import { useLogout, useGetIdentity, useNavigation } from "@refinedev/core"; import { Link } from "react-router"; export const Header = () => { - const { - mutate, - mutation: { isPending }, - } = useLogout(); + const { mutate, isPending } = useLogout(); const { data: identity } = useGetIdentity(); // You can also use methods like list or create to trigger navigation. diff --git a/documentation/tutorial/routing/navigation/react-router/sandpack.tsx b/documentation/tutorial/routing/navigation/react-router/sandpack.tsx index 63051c697aaab..6484ae155ee71 100644 --- a/documentation/tutorial/routing/navigation/react-router/sandpack.tsx +++ b/documentation/tutorial/routing/navigation/react-router/sandpack.tsx @@ -29,7 +29,7 @@ import { useLogout, useGetIdentity, useNavigation } from "@refinedev/core"; import { Link } from "react-router"; export const Header = () => { - const { mutate, mutation: { isPending } } = useLogout(); + const { mutate, isPending } = useLogout(); const { data: identity } = useGetIdentity(); // You can also use methods like list or create to trigger navigation.