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.
This commit is contained in:
parent
7b6602e386
commit
276e734a7a
|
@ -1,14 +1,13 @@
|
||||||
import { getGetServerSideProps } from '@/api/ssrApollo'
|
|
||||||
import Layout from '@/components/layout'
|
import Layout from '@/components/layout'
|
||||||
import styles from '@/styles/wallet.module.css'
|
import styles from '@/styles/wallet.module.css'
|
||||||
import { WalletCard } from '@/components/wallet-card'
|
import { WalletCard } from '@/components/wallet-card'
|
||||||
import { WALLETS as WALLETS_QUERY } from '@/fragments/wallet'
|
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import { WALLET_DEFS } from '@/components/wallet'
|
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 (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<div className='py-5 w-100'>
|
<div className='py-5 w-100'>
|
||||||
|
|
Loading…
Reference in New Issue