diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 6f33739a..05eadc54 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -41,7 +41,20 @@ function MyApp({ Component, pageProps }: any) { { + const queryIsReadyForPersistance = + query.state.status === "success" + if (queryIsReadyForPersistance) { + return !((query.state?.data as any)?.pages?.length > 1) + } else { + return false + } + }, + }, + }} >