From 1af25c6bc09bed8d9299356458c0e9c3ce42ae0b Mon Sep 17 00:00:00 2001 From: Dominik Dorfmeister Date: Sun, 24 Apr 2022 14:16:30 +0200 Subject: [PATCH] docs: fix offline example --- examples/offline/src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/offline/src/App.js b/examples/offline/src/App.js index 7af6646ce0..7eaf3ac4e7 100644 --- a/examples/offline/src/App.js +++ b/examples/offline/src/App.js @@ -5,7 +5,7 @@ import { QueryClient, MutationCache, onlineManager, - useisRestoring, + useIsRestoring, } from "react-query"; import { ReactQueryDevtools } from "react-query/devtools"; import toast, { Toaster } from "react-hot-toast"; @@ -76,7 +76,7 @@ export default function App() { } function Movies() { - const isRestoring = isRestoring(); + const isRestoring = useIsRestoring(); return (