From 276e734a7af2192f1aa4f232acba062cbecdffb3 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 24 Jun 2024 13:21:12 +0200 Subject: [PATCH] Fix 20s page load for /settings/wallets.json?nodata=true For some reason, if nodata is passed (which is the case if going back), the page takes 20s to load. --- pages/settings/wallets/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pages/settings/wallets/index.js b/pages/settings/wallets/index.js index 32725dfc..aca0c5c1 100644 --- a/pages/settings/wallets/index.js +++ b/pages/settings/wallets/index.js @@ -1,14 +1,13 @@ -import { getGetServerSideProps } from '@/api/ssrApollo' import Layout from '@/components/layout' import styles from '@/styles/wallet.module.css' import { WalletCard } from '@/components/wallet-card' -import { WALLETS as WALLETS_QUERY } from '@/fragments/wallet' import Link from 'next/link' import { WALLET_DEFS } from '@/components/wallet' +import { getGetServerSideProps } from '@/api/ssrApollo' -export const getServerSideProps = getGetServerSideProps({ query: WALLETS_QUERY, authRequired: true }) +export const getServerSideProps = getGetServerSideProps({ authRequired: true }) -export default function Wallet ({ ssrData }) { +export default function Wallet () { return (