From 61be80446d05a38a05d49b6d0b55dc73fb394c50 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 24 Jun 2024 14:22:07 +0200 Subject: [PATCH] Revert "Fix 20s page load for /settings/wallets.json?nodata=true" This reverts commit deb476b3a966569fefcfdf4082d6b64f90fbd0a2. Not using the dynamic import for LNC fixed the slow page load with ?nodata=true. --- pages/settings/wallets/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/settings/wallets/index.js b/pages/settings/wallets/index.js index aca0c5c1..32725dfc 100644 --- a/pages/settings/wallets/index.js +++ b/pages/settings/wallets/index.js @@ -1,13 +1,14 @@ +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({ authRequired: true }) +export const getServerSideProps = getGetServerSideProps({ query: WALLETS_QUERY, authRequired: true }) -export default function Wallet () { +export default function Wallet ({ ssrData }) { return (